Skip to content

Commit

Permalink
feat: add support for Python 3.12 (#905)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackwotherspoon authored Jan 29, 2024
1 parent 82da410 commit 7501d17
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: "3.10"
python-version: "3.12"

- name: Install nox
run: pip install nox
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
python-version: ["3.8", "3.11"]
python-version: ["3.8", "3.12"]
fail-fast: false
permissions:
contents: read
Expand Down Expand Up @@ -152,7 +152,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.11"]
python-version: ["3.8", "3.12"]
fail-fast: false
permissions:
contents: read
Expand Down
9 changes: 5 additions & 4 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

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

TEST_PYTHON_VERSIONS = ["3.8", "3.9", "3.10", "3.11"]
TEST_PYTHON_VERSIONS = ["3.8", "3.9", "3.10", "3.11", "3.12"]


@nox.session
Expand All @@ -42,8 +42,8 @@ def lint(session):
"mypy",
BLACK_VERSION,
ISORT_VERSION,
"types-setuptools",
"twine",
"build",
)
session.run(
"isort",
Expand All @@ -67,8 +67,9 @@ def lint(session):
"--non-interactive",
"--show-traceback",
)
session.run("python", "setup.py", "sdist")
session.run("twine", "check", "dist/*")
# verify that setup.py is valid
session.run("python", "-m", "build", "--sdist")
session.run("twine", "check", "--strict", "dist/*")


@nox.session()
Expand Down
2 changes: 1 addition & 1 deletion requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ sqlalchemy-stubs==0.4
PyMySQL==1.1.0
pg8000==1.30.4
asyncpg==0.29.0
python-tds==1.14.0
python-tds==1.15.0
aioresponses==0.7.6
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,15 @@
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
platforms="Posix; MacOS X; Windows",
packages=packages,
install_requires=dependencies,
extras_require={
"pymysql": ["PyMySQL>=1.1.0"],
"pg8000": ["pg8000>=1.30.4"],
"pytds": ["python-tds>=1.13.0"],
"pytds": ["python-tds>=1.15.0"],
"asyncpg": ["asyncpg>=0.29.0"],
},
python_requires=">=3.8",
Expand Down

0 comments on commit 7501d17

Please sign in to comment.