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

Commit e625c96

Browse files
committed
build: comprehensive removal of Python 3.9 support
1 parent 7e793cc commit e625c96

File tree

7 files changed

+13
-18
lines changed

7 files changed

+13
-18
lines changed

.librarian/generator-input/librarian.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@
210210
split_system_tests=True,
211211
system_test_extras=["tracing"],
212212
system_test_python_versions=["3.12"],
213-
unit_test_python_versions=["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
213+
unit_test_python_versions=["3.10", "3.11", "3.12", "3.13", "3.14"]
214214
)
215215
s.move(
216216
templated_files,

.librarian/generator-input/noxfile.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,12 @@
3232
ISORT_VERSION = "isort==5.11.0"
3333
LINT_PATHS = ["google", "tests", "noxfile.py", "setup.py"]
3434

35-
DEFAULT_PYTHON_VERSION = "3.14"
35+
DEFAULT_PYTHON_VERSION = "3.10"
3636

3737
DEFAULT_MOCK_SERVER_TESTS_PYTHON_VERSION = "3.12"
3838
SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ["3.14"]
3939

4040
UNIT_TEST_PYTHON_VERSIONS: List[str] = [
41-
"3.9",
4241
"3.10",
4342
"3.11",
4443
"3.12",

.librarian/generator-input/setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@
8383
"License :: OSI Approved :: Apache Software License",
8484
"Programming Language :: Python",
8585
"Programming Language :: Python :: 3",
86-
"Programming Language :: Python :: 3.9",
8786
"Programming Language :: Python :: 3.10",
8887
"Programming Language :: Python :: 3.11",
8988
"Programming Language :: Python :: 3.12",
@@ -95,7 +94,7 @@
9594
packages=packages,
9695
install_requires=dependencies,
9796
extras_require=extras,
98-
python_requires=">=3.9",
97+
python_requires=">=3.10",
9998
include_package_data=True,
10099
zip_safe=False,
101100
)

.librarian/state.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ libraries:
3838
- ^scripts/fixup_
3939
- ^setup.py
4040
- ^testing/constraints-3.8
41-
- ^testing/constraints-3.9
42-
- ^testing/constraints-3.1
41+
- ^testing/constraints-3.10
4342
- ^docs/conf.py
4443
- ^docs/_static
4544
- ^docs/spanner_v1/types_.rst

noxfile.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,16 @@
3636
ISORT_VERSION = "isort==5.11.0"
3737
LINT_PATHS = ["google", "tests", "noxfile.py", "setup.py"]
3838

39-
DEFAULT_PYTHON_VERSION = "3.14"
39+
DEFAULT_PYTHON_VERSION = "3.10"
4040

4141
DEFAULT_MOCK_SERVER_TESTS_PYTHON_VERSION = "3.12"
42-
SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ["3.14"]
42+
SYSTEM_TEST_PYTHON_VERSIONS: List[str] = [
43+
"3.10",
44+
"3.11",
45+
"3.12",
46+
"3.13",
47+
"3.14",
48+
]
4349

4450
UNIT_TEST_PYTHON_VERSIONS: List[str] = [
4551
"3.10",

samples/samples/noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def get_pytest_env_vars() -> Dict[str, str]:
8989

9090
# DO NOT EDIT - automatically generated.
9191
# All versions used to test samples.
92-
ALL_VERSIONS = ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
92+
ALL_VERSIONS = ["3.10", "3.11", "3.12", "3.13", "3.14"]
9393

9494
# Any default versions that should be ignored.
9595
IGNORED_VERSIONS = TEST_CONFIG["ignored_versions"]

testing/constraints-3.9.txt

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

0 commit comments

Comments
 (0)