Skip to content
This repository was archived by the owner on Sep 4, 2025. It is now read-only.

Commit b1045d1

Browse files
feat: Support Python 3.12 (#5)
* feat: Support Python 3.12 * Add `-dev` suffix * Update strategy * Use `allow-prereleases: true` * Bump `sqlean.py` requirement * Bump to existing PyPI release * Specify greenlet pre-release * Reset sqlean-py requirement
1 parent e3b325c commit b1045d1

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/test.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,12 @@ jobs:
6363
test:
6464
name: Pytest (Python ${{ matrix.python-version }}, ${{ matrix.os }}, SQLAlchemy ${{ matrix.sqlalchemy-version }})
6565
runs-on: ${{ matrix.os }}
66+
continue-on-error: ${{ matrix.python-version == '3.12' }}
6667
strategy:
68+
fail-fast: false
6769
matrix:
6870
os: ["ubuntu-latest"]
69-
python-version: ["3.8", "3.9", "3.10", "3.11"]
71+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
7072
sqlalchemy-version: ["1.*", "2.*"]
7173
include:
7274
- python-version: "3.11"
@@ -82,6 +84,7 @@ jobs:
8284
with:
8385
cache: pip
8486
python-version: ${{ matrix.python-version }}
87+
allow-prereleases: true
8588
- name: Install dependencies
8689
env:
8790
PIP_CONSTRAINT: .github/workflows/constraints.txt

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ classifiers = [
2525
"Programming Language :: Python :: 3.9",
2626
"Programming Language :: Python :: 3.10",
2727
"Programming Language :: Python :: 3.11",
28+
"Programming Language :: Python :: 3.12",
2829
"Programming Language :: Python :: Implementation :: CPython",
2930
"Programming Language :: SQL",
3031
"Topic :: Database",
@@ -37,6 +38,7 @@ classifiers = [
3738
dependencies = [
3839
"sqlalchemy>=1.4.0",
3940
"sqlean-py>=0.21.5.1",
41+
"greenlet>=3.0.0a1",
4042
]
4143

4244
[project.entry-points."sqlalchemy.dialects"]
@@ -70,7 +72,7 @@ cov-report = ["- coverage combine", "coverage report"]
7072
cov = ["test-cov", "cov-report"]
7173

7274
[[tool.hatch.envs.all.matrix]]
73-
python = ["3.8", "3.9", "3.10", "3.11"]
75+
python = ["3.8", "3.9", "3.10", "3.11", "3.12"]
7476

7577
[tool.hatch.envs.typing]
7678
dependencies = ["mypy>=1.0.0", "pytest"]

0 commit comments

Comments
 (0)