3636 "3.12" ,
3737 "3.13" ,
3838 "3.14" ,
39+ "3.15" ,
3940]
4041UNIT_TEST_STANDARD_DEPENDENCIES = [
4142 "mock" ,
@@ -214,30 +215,16 @@ def install_unittest_dependencies(session, *constraints):
214215@nox .session (python = ALL_PYTHON )
215216@nox .parametrize (
216217 "protobuf_implementation" ,
217- ["python" , "upb" , "cpp" ],
218+ ["python" , "upb" ],
218219)
219220def unit (session , protobuf_implementation ):
220221 # Install all test dependencies, then install this package in-place.
221222
222- if protobuf_implementation == "cpp" and session .python in (
223- "3.11" ,
224- "3.12" ,
225- "3.13" ,
226- "3.14" ,
227- ):
228- session .skip ("cpp implementation is not supported in python 3.11+" )
229-
230223 constraints_path = str (
231224 CURRENT_DIRECTORY / "testing" / f"constraints-{ session .python } .txt"
232225 )
233226 install_unittest_dependencies (session , "-c" , constraints_path )
234227
235- # TODO(https://github.com/googleapis/synthtool/issues/1976):
236- # Remove the 'cpp' implementation once support for Protobuf 3.x is dropped.
237- # The 'cpp' implementation requires Protobuf<4.
238- if protobuf_implementation == "cpp" :
239- session .install ("protobuf<4" )
240-
241228 # Run py.test against the unit tests.
242229 args = [
243230 "py.test" ,
@@ -333,8 +320,6 @@ def install_systemtest_dependencies(session, *constraints):
333320 ("python" , "POSTGRESQL" ),
334321 ("upb" , "GOOGLE_STANDARD_SQL" ),
335322 ("upb" , "POSTGRESQL" ),
336- ("cpp" , "GOOGLE_STANDARD_SQL" ),
337- ("cpp" , "POSTGRESQL" ),
338323 ],
339324)
340325def system (session , protobuf_implementation , database_dialect ):
@@ -362,14 +347,6 @@ def system(session, protobuf_implementation, database_dialect):
362347 "Only run system tests on real Spanner with one protobuf implementation to speed up the build"
363348 )
364349
365- if protobuf_implementation == "cpp" and session .python in (
366- "3.11" ,
367- "3.12" ,
368- "3.13" ,
369- "3.14" ,
370- ):
371- session .skip ("cpp implementation is not supported in python 3.11+" )
372-
373350 # Install pyopenssl for mTLS testing.
374351 if os .environ .get ("GOOGLE_API_USE_CLIENT_CERTIFICATE" , "false" ) == "true" :
375352 session .install ("pyopenssl" )
@@ -382,12 +359,6 @@ def system(session, protobuf_implementation, database_dialect):
382359
383360 install_systemtest_dependencies (session , "-c" , constraints_path )
384361
385- # TODO(https://github.com/googleapis/synthtool/issues/1976):
386- # Remove the 'cpp' implementation once support for Protobuf 3.x is dropped.
387- # The 'cpp' implementation requires Protobuf<4.
388- if protobuf_implementation == "cpp" :
389- session .install ("protobuf<4" )
390-
391362 # Run py.test against the system tests.
392363 if system_test_exists :
393364 args = [
@@ -561,21 +532,11 @@ def docfx(session):
561532 ("python" , "POSTGRESQL" ),
562533 ("upb" , "GOOGLE_STANDARD_SQL" ),
563534 ("upb" , "POSTGRESQL" ),
564- ("cpp" , "GOOGLE_STANDARD_SQL" ),
565- ("cpp" , "POSTGRESQL" ),
566535 ],
567536)
568537def prerelease_deps (session , protobuf_implementation , database_dialect ):
569538 """Run all tests with prerelease versions of dependencies installed."""
570539
571- if protobuf_implementation == "cpp" and session .python in (
572- "3.11" ,
573- "3.12" ,
574- "3.13" ,
575- "3.14" ,
576- ):
577- session .skip ("cpp implementation is not supported in python 3.11+" )
578-
579540 # Install all dependencies
580541 session .install ("-e" , ".[all, tests, tracing]" )
581542 unit_deps_all = UNIT_TEST_STANDARD_DEPENDENCIES + UNIT_TEST_EXTERNAL_DEPENDENCIES
0 commit comments