From 0ff230948104fb61cffe136f54c9cfd6a9088082 Mon Sep 17 00:00:00 2001 From: Linchin Date: Wed, 5 Nov 2025 00:27:38 +0000 Subject: [PATCH 1/3] test: remove python 3.7 and 3.8 from noxfile unit tests --- noxfile.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/noxfile.py b/noxfile.py index e41ee6c..8c3248c 100644 --- a/noxfile.py +++ b/noxfile.py @@ -35,8 +35,6 @@ DEFAULT_PYTHON_VERSION = "3.10" UNIT_TEST_PYTHON_VERSIONS: List[str] = [ - "3.7", - "3.8", "3.9", "3.10", "3.11", From 2efe211d31a8ebd1cea4aa461029d33b6f2dc666 Mon Sep 17 00:00:00 2001 From: Linchin Date: Wed, 5 Nov 2025 00:41:31 +0000 Subject: [PATCH 2/3] only skip 3.7 and 3.8 for continuous --- noxfile.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/noxfile.py b/noxfile.py index 8c3248c..a6bfb99 100644 --- a/noxfile.py +++ b/noxfile.py @@ -35,6 +35,8 @@ DEFAULT_PYTHON_VERSION = "3.10" UNIT_TEST_PYTHON_VERSIONS: List[str] = [ + "3.7", + "3.8", "3.9", "3.10", "3.11", @@ -174,6 +176,9 @@ def install_unittest_dependencies(session, *constraints): def unit(session, protobuf_implementation): # Install all test dependencies, then install this package in-place. + if session.python in ("3.7", "3.8") and os.environ.get("TRAMPOLINE_IMAGE"): + session.skip("skipping Python 3.7 and 3.8 in kokoro tests") + if protobuf_implementation == "cpp" and session.python in ( "3.11", "3.12", From 5f7575954bd9cc97c72663b71b6c7a47bcf2a95a Mon Sep 17 00:00:00 2001 From: Linchin Date: Wed, 5 Nov 2025 18:52:04 +0000 Subject: [PATCH 3/3] use a different way to modify --- noxfile.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/noxfile.py b/noxfile.py index a6bfb99..6e3c1f3 100644 --- a/noxfile.py +++ b/noxfile.py @@ -72,7 +72,12 @@ CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute() nox.options.sessions = [ - "unit", + "unit-3.9", + "unit-3.10", + "unit-3.11", + "unit-3.12", + "unit-3.13", + "unit-3.14", "system", "cover", "lint",