Skip to content

Commit 7501d17

Browse files
feat: add support for Python 3.12 (#905)
1 parent 82da410 commit 7501d17

File tree

5 files changed

+11
-9
lines changed

5 files changed

+11
-9
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
- name: Setup Python
5151
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
5252
with:
53-
python-version: "3.10"
53+
python-version: "3.12"
5454

5555
- name: Install nox
5656
run: pip install nox

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
strategy:
3636
matrix:
3737
os: [macos-latest, windows-latest, ubuntu-latest]
38-
python-version: ["3.8", "3.11"]
38+
python-version: ["3.8", "3.12"]
3939
fail-fast: false
4040
permissions:
4141
contents: read
@@ -152,7 +152,7 @@ jobs:
152152
runs-on: ubuntu-latest
153153
strategy:
154154
matrix:
155-
python-version: ["3.8", "3.11"]
155+
python-version: ["3.8", "3.12"]
156156
fail-fast: false
157157
permissions:
158158
contents: read

noxfile.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
LINT_PATHS = ["google", "tests", "noxfile.py", "setup.py"]
2828

29-
TEST_PYTHON_VERSIONS = ["3.8", "3.9", "3.10", "3.11"]
29+
TEST_PYTHON_VERSIONS = ["3.8", "3.9", "3.10", "3.11", "3.12"]
3030

3131

3232
@nox.session
@@ -42,8 +42,8 @@ def lint(session):
4242
"mypy",
4343
BLACK_VERSION,
4444
ISORT_VERSION,
45-
"types-setuptools",
4645
"twine",
46+
"build",
4747
)
4848
session.run(
4949
"isort",
@@ -67,8 +67,9 @@ def lint(session):
6767
"--non-interactive",
6868
"--show-traceback",
6969
)
70-
session.run("python", "setup.py", "sdist")
71-
session.run("twine", "check", "dist/*")
70+
# verify that setup.py is valid
71+
session.run("python", "-m", "build", "--sdist")
72+
session.run("twine", "check", "--strict", "dist/*")
7273

7374

7475
@nox.session()

requirements-test.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ sqlalchemy-stubs==0.4
88
PyMySQL==1.1.0
99
pg8000==1.30.4
1010
asyncpg==0.29.0
11-
python-tds==1.14.0
11+
python-tds==1.15.0
1212
aioresponses==0.7.6

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,15 @@
7070
"Programming Language :: Python :: 3.9",
7171
"Programming Language :: Python :: 3.10",
7272
"Programming Language :: Python :: 3.11",
73+
"Programming Language :: Python :: 3.12",
7374
],
7475
platforms="Posix; MacOS X; Windows",
7576
packages=packages,
7677
install_requires=dependencies,
7778
extras_require={
7879
"pymysql": ["PyMySQL>=1.1.0"],
7980
"pg8000": ["pg8000>=1.30.4"],
80-
"pytds": ["python-tds>=1.13.0"],
81+
"pytds": ["python-tds>=1.15.0"],
8182
"asyncpg": ["asyncpg>=0.29.0"],
8283
},
8384
python_requires=">=3.8",

0 commit comments

Comments
 (0)