Skip to content

Commit

Permalink
chore: support Python 3.12
Browse files Browse the repository at this point in the history
Signed-off-by: SdgJlbl <[email protected]>
  • Loading branch information
SdgJlbl committed Jun 28, 2024
1 parent 15fa313 commit 4bd3026
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/validate-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-22.04]
python: ["3.9", "3.10", "3.11"]
python: ["3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:

- uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: "3.11"

- uses: actions/[email protected]
id: cache
Expand Down Expand Up @@ -109,7 +109,7 @@ jobs:
steps:
- uses: actions/setup-python@v5
with:
python-version: 3.11
python-version: 3.12

- uses: actions/checkout@v4
with:
Expand Down
1 change: 1 addition & 0 deletions changes/226.added
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Python 3.12 support
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dynamic = ["version"]
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion substrafl/remote/register/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# minimal and maximal values of Python 3 minor versions supported
# we need to store this as integer, else "3.11" < "3.9" (string comparison)
MINIMAL_PYTHON_VERSION = 9 # 3.9
MAXIMAL_PYTHON_VERSION = 11 # 3.11
MAXIMAL_PYTHON_VERSION = 12 # 3.12

_DEFAULT_BASE_DOCKER_IMAGE = "python:{python_version}-slim"

Expand Down

0 comments on commit 4bd3026

Please sign in to comment.