@@ -29,9 +29,11 @@ ALL_PYTHON = [
29
29
"3.11",
30
30
"3.12",
31
31
"3.13",
32
+ "3.14",
32
33
]
33
34
34
- DEFAULT_PYTHON_VERSION = ALL_PYTHON[-1]
35
+ DEFAULT_PYTHON_VERSION = ALL_PYTHON[-2]
36
+ PRE_RELEASE_PYTHON = ALL_PYTHON[-1]
35
37
36
38
CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()
37
39
@@ -51,7 +53,7 @@ UNIT_TEST_DEPENDENCIES: List[str] = []
51
53
UNIT_TEST_EXTRAS: List[str] = []
52
54
UNIT_TEST_EXTRAS_BY_PYTHON: Dict[str, List[str]] = {}
53
55
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
55
57
SYSTEM_TEST_STANDARD_DEPENDENCIES = [
56
58
"mock",
57
59
"pytest",
@@ -223,15 +225,17 @@ def install_unittest_dependencies(session, *constraints):
223
225
def unit(session, protobuf_implementation):
224
226
# Install all test dependencies, then install this package in-place.
225
227
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"):
227
231
session.skip("cpp implementation is not supported in python 3.11+")
228
232
229
233
constraints_path = str(
230
234
CURRENT_DIRECTORY / "testing" / f"constraints-{session.python}.txt"
231
235
)
232
236
install_unittest_dependencies(session, "-c", constraints_path)
233
237
234
- # TODO(https://github.com/googleapis/synthtool /issues/1976 ):
238
+ # TODO(https://github.com/googleapis/gapic-generator-python /issues/2388 ):
235
239
# Remove the 'cpp' implementation once support for Protobuf 3.x is dropped.
236
240
# The 'cpp' implementation requires Protobuf<4 .
237
241
if protobuf_implementation == " cpp" :
@@ -425,7 +429,7 @@ def docfx(session):
425
429
)
426
430
427
431
428
- @nox.session(python =DEFAULT_PYTHON_VERSION )
432
+ @nox.session(python =PRE_RELEASE_PYTHON )
429
433
@nox.parametrize(
430
434
" protobuf_implementation" ,
431
435
[ " python" , " upb" , " cpp" ],
@@ -438,7 +442,9 @@ def prerelease_deps(session, protobuf_implementation):
438
442
`pip install --pre <package>`.
439
443
" " "
440
444
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" ):
442
448
session.skip( " cpp implementation is not supported in python 3.11+" )
443
449
444
450
# Install all dependencies
0 commit comments