Skip to content
This repository was archived by the owner on Mar 9, 2026. It is now read-only.

Commit 2ac7df8

Browse files
committed
feat(nox): Add Python 3.14 support to noxfile
1 parent 28a4f18 commit 2ac7df8

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

noxfile.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"3.11",
4545
"3.12",
4646
"3.13",
47+
"3.14",
4748
]
4849
UNIT_TEST_STANDARD_DEPENDENCIES = [
4950
"mock",
@@ -234,7 +235,7 @@ def install_unittest_dependencies(session, *constraints):
234235
def unit(session, protobuf_implementation):
235236
# Install all test dependencies, then install this package in-place.
236237

237-
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13"):
238+
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13", "3.14"):
238239
session.skip("cpp implementation is not supported in python 3.11+")
239240

240241
constraints_path = str(
@@ -325,15 +326,15 @@ def system(session):
325326
if system_test_exists:
326327
session.run(
327328
"py.test",
328-
"--quiet",
329+
"--verbose",
329330
f"--junitxml=system_{session.python}_sponge_log.xml",
330331
system_test_path,
331332
*session.posargs,
332333
)
333-
if system_test_folder_exists:
334+
if os.path.exists(system_test_folder_path):
334335
session.run(
335336
"py.test",
336-
"--quiet",
337+
"--verbose",
337338
f"--junitxml=system_{session.python}_sponge_log.xml",
338339
system_test_folder_path,
339340
*session.posargs,
@@ -436,15 +437,15 @@ def docfx(session):
436437
)
437438

438439

439-
@nox.session(python="3.13")
440+
@nox.session(python="3.14")
440441
@nox.parametrize(
441442
"protobuf_implementation",
442443
["python", "upb", "cpp"],
443444
)
444445
def prerelease_deps(session, protobuf_implementation):
445446
"""Run all tests with prerelease versions of dependencies installed."""
446447

447-
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13"):
448+
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13", "3.14"):
448449
session.skip("cpp implementation is not supported in python 3.11+")
449450

450451
# Install all dependencies
@@ -542,4 +543,4 @@ def prerelease_deps(session, protobuf_implementation):
542543
env={
543544
"PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION": protobuf_implementation,
544545
},
545-
)
546+
)

0 commit comments

Comments
 (0)