Skip to content

Commit

Permalink
feat: 🎸 python3.12 support (#130)
Browse files Browse the repository at this point in the history
* feat: 🎸 python3.12 support

* chore: 🤖 update makefile to use py3.12

* chore: 🤖 updated serverless runtime envs
  • Loading branch information
DanielRDias authored Oct 9, 2024
1 parent e6443df commit 575202c
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ jobs:
uses: ./.github/workflows/pytest.yml
with:
os: "ubuntu-latest"
python-version: "3.10"
python-version: "3.12"
2 changes: 1 addition & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ jobs:
uses: ./.github/workflows/pytest.yml
with:
os: "macos-latest"
python-version: "3.10"
python-version: "3.12"
2 changes: 1 addition & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
type: string
python-version:
description: "Python version passed from the caller workflow"
default: "3.10"
default: "3.12"
required: false
type: string

Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/python3.12.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: python3.12

on:
push:
branches: [main]
pull_request:
# The branches below must be a subset of the branches above
branches: [main]

jobs:
call-workflow:
uses: ./.github/workflows/pytest.yml
with:
os: "ubuntu-latest"
python-version: "3.12"
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ jobs:
uses: ./.github/workflows/pytest.yml
with:
os: "windows-latest"
python-version: "3.10"
python-version: "3.12"
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ help: ## Show available commands

.PHONY: setup
setup: ## Set up dependencies
echo python version: $$(which python3.10)
echo python version: $$(which python3.12)
@(PIPENV_VERBOSITY=-1 pipenv --venv && PIPENV_VERBOSITY=-1 PIPENV_VENV_IN_PROJECT=1 pipenv --rm) || true >/dev/null
CFLAGS=$(CFLAGS) LC_ALL=$(LC_ALL) LANG=$(LANG) PIPENV_VENV_IN_PROJECT=1 pipenv sync --dev --python=$$(which python3.10)
CFLAGS=$(CFLAGS) LC_ALL=$(LC_ALL) LANG=$(LANG) PIPENV_VENV_IN_PROJECT=1 pipenv sync --dev --python=$$(which python3.12)
npm install

.PHONY: deploy
Expand Down
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ coverage-badge = "*"
py4j = "*"

[requires]
python_version = ">=3.8"
python_version = "3"
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
[![Python 3.9](https://github.com/DanielRDias/ldap-password-rotation/actions/workflows/python3.9.yml/badge.svg)](https://github.com/DanielRDias/ldap-password-rotation/actions/workflows/python3.9.yml)
[![Python 3.10](https://github.com/DanielRDias/ldap-password-rotation/actions/workflows/python3.10.yml/badge.svg)](https://github.com/DanielRDias/ldap-password-rotation/actions/workflows/python3.10.yml)
[![Python 3.11](https://github.com/DanielRDias/ldap-password-rotation/actions/workflows/python3.11.yml/badge.svg)](https://github.com/DanielRDias/ldap-password-rotation/actions/workflows/python3.11.yml)
[![Python 3.12](https://github.com/DanielRDias/ldap-password-rotation/actions/workflows/python3.12.yml/badge.svg)](https://github.com/DanielRDias/ldap-password-rotation/actions/workflows/python3.12.yml)

![Python >=3.12](https://img.shields.io/badge/python->=3.12-yellow.svg)
![Python >=3.13](https://img.shields.io/badge/python->=3.13-yellow.svg)

The LDAP Password Rotation Service offers a lambda function that integrates with AWS Secrets Manager and can update the user password to a new random password and update it in AWS Secrets Manager.

Expand Down
4 changes: 3 additions & 1 deletion serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package:

provider:
name: aws
runtime: python3.10
runtime: python3.12
timeout: 30
logRetentionInDays: 14
stage: ${opt:stage, 'dev'}
Expand Down Expand Up @@ -79,6 +79,8 @@ layers:
- python3.8
- python3.9
- python3.10
- python3.11
- python3.12
compatibleArchitectures:
- x86_64
- arm64
Expand Down

0 comments on commit 575202c

Please sign in to comment.