@@ -29,9 +29,11 @@ ALL_PYTHON = [
2929 "3.11",
3030 "3.12",
3131 "3.13",
32+ "3.14",
3233]
3334
34- DEFAULT_PYTHON_VERSION = ALL_PYTHON[-1]
35+ DEFAULT_PYTHON_VERSION = ALL_PYTHON[-2]
36+ PRE_RELEASE_PYTHON = ALL_PYTHON[-1]
3537
3638CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()
3739
@@ -51,7 +53,7 @@ UNIT_TEST_DEPENDENCIES: List[str] = []
5153UNIT_TEST_EXTRAS: List[str] = []
5254UNIT_TEST_EXTRAS_BY_PYTHON: Dict[str, List[str]] = {}
5355
54- SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
56+ SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ALL_PYTHON
5557SYSTEM_TEST_STANDARD_DEPENDENCIES = [
5658 "mock",
5759 "pytest",
@@ -223,15 +225,17 @@ def install_unittest_dependencies(session, *constraints):
223225def unit(session, protobuf_implementation):
224226 # Install all test dependencies, then install this package in-place.
225227
226- if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13"):
228+ # TODO(https://github.com/googleapis/gapic-generator-python/issues/2388):
229+ # Remove this check once support for Protobuf 3.x is dropped.
230+ if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13", "3.14"):
227231 session.skip("cpp implementation is not supported in python 3.11+")
228232
229233 constraints_path = str(
230234 CURRENT_DIRECTORY / "testing" / f"constraints-{session.python}.txt"
231235 )
232236 install_unittest_dependencies(session, "-c", constraints_path)
233237
234- # TODO(https://github.com/googleapis/synthtool /issues/1976 ):
238+ # TODO(https://github.com/googleapis/gapic-generator-python /issues/2388 ):
235239 # Remove the 'cpp' implementation once support for Protobuf 3.x is dropped.
236240 # The 'cpp' implementation requires Protobuf<4 .
237241 if protobuf_implementation == " cpp" :
@@ -425,7 +429,7 @@ def docfx(session):
425429 )
426430
427431
428- @nox.session(python =DEFAULT_PYTHON_VERSION )
432+ @nox.session(python =PRE_RELEASE_PYTHON )
429433@nox.parametrize(
430434 " protobuf_implementation" ,
431435 [ " python" , " upb" , " cpp" ],
@@ -438,7 +442,9 @@ def prerelease_deps(session, protobuf_implementation):
438442 `pip install --pre <package>`.
439443 " " "
440444
441- if protobuf_implementation == " cpp" and session.python in ( " 3.11" , " 3.12" , " 3.13" ):
445+ # TODO(https: //github.com /googleapis /gapic-generator-python /issues /2388):
446+ # Remove this check once support for Protobuf 3.x is dropped.
447+ if protobuf_implementation == " cpp" and session.python in ( " 3.11" , " 3.12" , " 3.13" , " 3.14" ):
442448 session.skip( " cpp implementation is not supported in python 3.11+" )
443449
444450 # Install all dependencies
0 commit comments