3636 "3.11" ,
3737 "3.12" ,
3838 "3.13" ,
39+ "3.14" ,
3940]
4041
41- DEFAULT_PYTHON_VERSION = ALL_PYTHON [- 1 ]
42+ DEFAULT_PYTHON_VERSION = ALL_PYTHON [- 2 ]
43+ PRE_RELEASE_PYTHON = ALL_PYTHON [- 1 ]
4244
4345CURRENT_DIRECTORY = pathlib .Path (__file__ ).parent .absolute ()
4446
5860UNIT_TEST_EXTRAS : List [str ] = []
5961UNIT_TEST_EXTRAS_BY_PYTHON : Dict [str , List [str ]] = {}
6062
61- SYSTEM_TEST_PYTHON_VERSIONS : List [str ] = [ "3.8" , "3.9" , "3.10" , "3.11" , "3.12" , "3.13" ]
63+ SYSTEM_TEST_PYTHON_VERSIONS : List [str ] = ALL_PYTHON
6264SYSTEM_TEST_STANDARD_DEPENDENCIES = [
6365 "mock" ,
6466 "pytest" ,
@@ -222,7 +224,9 @@ def install_unittest_dependencies(session, *constraints):
222224def unit (session , protobuf_implementation ):
223225 # Install all test dependencies, then install this package in-place.
224226
225- if protobuf_implementation == "cpp" and session .python in ("3.11" , "3.12" , "3.13" ):
227+ # TODO(https://github.com/googleapis/synthtool/issues/1976):
228+ # Remove this check once support for Protobuf 3.x is dropped.
229+ if protobuf_implementation == "cpp" and session .python in ("3.11" , "3.12" , "3.13" , "3.14" ):
226230 session .skip ("cpp implementation is not supported in python 3.11+" )
227231
228232 constraints_path = str (
@@ -419,7 +423,7 @@ def docfx(session):
419423 )
420424
421425
422- @nox .session (python = DEFAULT_PYTHON_VERSION )
426+ @nox .session (python = PRE_RELEASE_PYTHON )
423427@nox .parametrize (
424428 "protobuf_implementation" ,
425429 ["python" , "upb" , "cpp" ],
@@ -432,7 +436,9 @@ def prerelease_deps(session, protobuf_implementation):
432436 `pip install --pre <package>`.
433437 """
434438
435- if protobuf_implementation == "cpp" and session .python in ("3.11" , "3.12" , "3.13" ):
439+ # TODO(https://github.com/googleapis/synthtool/issues/1976):
440+ # Remove this check once support for Protobuf 3.x is dropped.
441+ if protobuf_implementation == "cpp" and session .python in ("3.11" , "3.12" , "3.13" , "3.14" ):
436442 session .skip ("cpp implementation is not supported in python 3.11+" )
437443
438444 # Install all dependencies
0 commit comments