Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit 1f811d7

Browse files
committed
changed strategy for old python versions
1 parent 0f63309 commit 1f811d7

3 files changed

Lines changed: 6 additions & 8 deletions

File tree

.kokoro/presubmit/system-3.8.cfg

Lines changed: 0 additions & 7 deletions
This file was deleted.

noxfile.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,11 @@ def unit(session, protobuf_implementation):
209209
if protobuf_implementation == "cpp" and py_version >= (3, 11):
210210
session.skip("cpp implementation is not supported in python 3.11+")
211211

212+
# Skip python 3.7 and 3.8 tests if not available in kokoro environment
213+
# TODO: remove when 3.7 and 3.8 are dropped
214+
if py_version < (3, 9) and os.getenv("KOKORO_BUILD_ID"):
215+
session.skip("skipping deprecated python versions")
216+
212217
constraints_path = str(
213218
CURRENT_DIRECTORY / "testing" / f"constraints-{session.python}.txt"
214219
)

owlbot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def get_staging_dirs(
109109
system_test_external_dependencies=[
110110
"pytest-asyncio==0.21.2",
111111
],
112-
unit_test_python_versions=["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"],
112+
unit_test_python_versions=["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"],
113113
)
114114

115115
s.move(templated_files, excludes=[".coveragerc", "README.rst", ".github/release-please.yml", "noxfile.py", "renovate.json"])

0 commit comments

Comments
 (0)