Skip to content

Commit

Permalink
feat: add support for Python 3.13 (#383)
Browse files Browse the repository at this point in the history
This change adds support for Python 3.13. It does the following:
- The latest Python version that presubmit tests use is now Python 3.13, instead of Python 3.12.
- Remove `psycopg2-binary` package from `requirements-test.txt`, because Python 3.13 requires psycopg version 2.9.10. But 2.9.10 is not yet fully supported on Windows and Mac. As a result, we cannot run [test_psycopg2_direct_connection.py](https://github.com/GoogleCloudPlatform/alloydb-python-connector/pull/383/files#diff-58b933e0c009174fe693b297def131f462f39e29de5b887468865f45efb5dea8) as part of our presubmit tests. So we move it to the `docs/samples/` folder for now. Re-adding `psycopg2-binary` package and `test_psycopg2_direct_connection.py` to our presubmit tests is being tracked in #388.
  • Loading branch information
rhatgadkar-goog authored Nov 6, 2024
1 parent fc52059 commit 22ef77c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
python-version: ["3.9", "3.12"]
python-version: ["3.9", "3.13"]
fail-fast: false
steps:
- name: Checkout code
Expand Down Expand Up @@ -99,7 +99,7 @@ jobs:
(github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]')
strategy:
matrix:
python-version: ["3.9", "3.12"]
python-version: ["3.9", "3.13"]
fail-fast: false
permissions:
contents: read
Expand Down
4 changes: 2 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
ISORT_VERSION = "isort==5.13.2"
LINT_PATHS = ["google", "tests", "noxfile.py", "setup.py"]

SYSTEM_TEST_PYTHON_VERSIONS = ["3.9", "3.10", "3.11", "3.12"]
UNIT_TEST_PYTHON_VERSIONS = ["3.9", "3.10", "3.11", "3.12"]
SYSTEM_TEST_PYTHON_VERSIONS = ["3.9", "3.10", "3.11", "3.12", "3.13"]
UNIT_TEST_PYTHON_VERSIONS = ["3.9", "3.10", "3.11", "3.12", "3.13"]


@nox.session
Expand Down
1 change: 0 additions & 1 deletion requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
asyncpg==0.30.0
mock==5.1.0
pg8000==1.31.2
psycopg2-binary==2.9.9
pytest==8.3.3
pytest-asyncio==0.24.0
pytest-cov==5.0.0
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
],
platforms="Posix; MacOS X; Windows",
packages=packages,
Expand Down

0 comments on commit 22ef77c

Please sign in to comment.