Skip to content

Commit b5afa07

Browse files
committed
feat(python): Add support for Python 3.14
1 parent 601d3f6 commit b5afa07

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

noxfile.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,10 @@ class = StreamHandler
7777

7878
BLACK_VERSION = "black==22.3.0"
7979
BLACK_PATHS = ["google", "test", "noxfile.py", "setup.py", "samples"]
80-
DEFAULT_PYTHON_VERSION = "3.12"
81-
DEFAULT_PYTHON_VERSION_FOR_SQLALCHEMY_20 = "3.12"
80+
UNIT_TEST_PYTHON_VERSIONS = ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
81+
SYSTEM_TEST_PYTHON_VERSIONS = ["3.9", "3.14"]
82+
DEFAULT_PYTHON_VERSION = "3.14"
83+
DEFAULT_PYTHON_VERSION_FOR_SQLALCHEMY_20 = "3.14"
8284

8385

8486
@nox.session(python=DEFAULT_PYTHON_VERSION_FOR_SQLALCHEMY_20)
@@ -126,7 +128,7 @@ def lint_setup_py(session):
126128
session.run("python", "setup.py", "check", "--restructuredtext", "--strict")
127129

128130

129-
@nox.session(python=DEFAULT_PYTHON_VERSION)
131+
@nox.session(python=UNIT_TEST_PYTHON_VERSIONS[0])
130132
def compliance_test_14(session):
131133
"""Run SQLAlchemy dialect compliance test suite."""
132134

@@ -208,7 +210,7 @@ def compliance_test_20(session):
208210
)
209211

210212

211-
@nox.session()
213+
@nox.session(python=SYSTEM_TEST_PYTHON_VERSIONS)
212214
def system(session):
213215
"""Run SQLAlchemy dialect system test suite."""
214216

@@ -245,7 +247,7 @@ def system(session):
245247
session.run("python", "drop_test_database.py")
246248

247249

248-
@nox.session(python=DEFAULT_PYTHON_VERSION)
250+
@nox.session(python=UNIT_TEST_PYTHON_VERSIONS)
249251
def unit(session):
250252
"""Run unit tests."""
251253
# Run SQLAlchemy dialect compliance test suite with OpenTelemetry.
@@ -287,14 +289,14 @@ def mockserver(session):
287289
)
288290

289291

290-
@nox.session(python=DEFAULT_PYTHON_VERSION)
292+
@nox.session(python=UNIT_TEST_PYTHON_VERSIONS[0])
291293
def migration_test(session):
292294
"""Test migrations with SQLAlchemy v1.4 and Alembic"""
293295
session.run("pip", "install", "sqlalchemy>=1.4,<2.0", "--force-reinstall")
294296
_migration_test(session)
295297

296298

297-
@nox.session(python=DEFAULT_PYTHON_VERSION)
299+
@nox.session(python=UNIT_TEST_PYTHON_VERSIONS[-1])
298300
def _migration_test(session):
299301
"""Migrate with SQLAlchemy and Alembic and check the result."""
300302
import glob

setup.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@
6262
classifiers=[
6363
"Intended Audience :: Developers",
6464
"License :: OSI Approved :: Apache Software License",
65+
"Programming Language :: Python :: 3.9",
66+
"Programming Language :: Python :: 3.10",
67+
"Programming Language :: Python :: 3.11",
68+
"Programming Language :: Python :: 3.12",
69+
"Programming Language :: Python :: 3.13",
70+
"Programming Language :: Python :: 3.14",
6571
],
6672
description=description,
6773
long_description=readme,

0 commit comments

Comments
 (0)