From 2c2142df976a4c1bad901d716eae1d8174e1277b Mon Sep 17 00:00:00 2001 From: chalmer lowe Date: Tue, 5 May 2026 13:08:07 -0400 Subject: [PATCH 1/5] feat(testutils): Update setup.py metadata and python_requires --- packages/google-cloud-testutils/setup.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/google-cloud-testutils/setup.py b/packages/google-cloud-testutils/setup.py index bdfa71c0d3ef..7d2b76c6370b 100644 --- a/packages/google-cloud-testutils/setup.py +++ b/packages/google-cloud-testutils/setup.py @@ -59,13 +59,12 @@ "click>=7.0.0", "packaging>=22.0", ), - python_requires=">=3.9", + python_requires=">=3.10", classifiers=[ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", From 62a4cc5de8047d8de3258b0f43e6051ed68d82b9 Mon Sep 17 00:00:00 2001 From: chalmer lowe Date: Tue, 5 May 2026 13:08:22 -0400 Subject: [PATCH 2/5] feat(testutils): Update Nox sessions to remove old versions --- packages/google-cloud-testutils/noxfile.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/google-cloud-testutils/noxfile.py b/packages/google-cloud-testutils/noxfile.py index 65f9c1ee1967..7dc4933e82bb 100644 --- a/packages/google-cloud-testutils/noxfile.py +++ b/packages/google-cloud-testutils/noxfile.py @@ -32,7 +32,7 @@ # Error if a python version is missing nox.options.error_on_missing_interpreters = True -ALL_PYTHON = ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] +ALL_PYTHON = ["3.10", "3.11", "3.12", "3.13", "3.14"] DEFAULT_PYTHON_VERSION = "3.14" BLACK_VERSION = "black==23.7.0" BLACK_PATHS = ["test_utils", "setup.py"] @@ -128,7 +128,7 @@ def system(session): "--package-name", "google-cloud-testutils", "--constraints-file", - "testing/constraints-3.9.txt", + "testing/constraints-3.10.txt", ) @@ -142,7 +142,7 @@ def update_lower_bounds(session): "--package-name", "google-cloud-testutils", "--constraints-file", - "testing/constraints-3.9.txt", + "testing/constraints-3.10.txt", ) From 6661745be585bd3721a62fdcd1109df3c0f02fbd Mon Sep 17 00:00:00 2001 From: chalmer lowe Date: Tue, 5 May 2026 13:08:49 -0400 Subject: [PATCH 3/5] test(testutils): Update testing constraints to 3.10 and drop 3.9 --- .../testing/constraints-3.10.txt | 10 ++++++++++ .../google-cloud-testutils/testing/constraints-3.9.txt | 10 ---------- 2 files changed, 10 insertions(+), 10 deletions(-) delete mode 100644 packages/google-cloud-testutils/testing/constraints-3.9.txt diff --git a/packages/google-cloud-testutils/testing/constraints-3.10.txt b/packages/google-cloud-testutils/testing/constraints-3.10.txt index e69de29bb2d1..98913de3c413 100644 --- a/packages/google-cloud-testutils/testing/constraints-3.10.txt +++ b/packages/google-cloud-testutils/testing/constraints-3.10.txt @@ -0,0 +1,10 @@ +# This constraints file is used to check that lower bounds +# are correct in setup.py +# List *all* library dependencies and extras in this file. +# Pin the version to the lower bound. +# +# e.g., if setup.py has "foo >= 1.14.0, < 2.0.0dev", +# Then this file should have foo==1.14.0 +click==7.0.0 +google-auth==0.4.0 +packaging==22.0 diff --git a/packages/google-cloud-testutils/testing/constraints-3.9.txt b/packages/google-cloud-testutils/testing/constraints-3.9.txt deleted file mode 100644 index 98913de3c413..000000000000 --- a/packages/google-cloud-testutils/testing/constraints-3.9.txt +++ /dev/null @@ -1,10 +0,0 @@ -# This constraints file is used to check that lower bounds -# are correct in setup.py -# List *all* library dependencies and extras in this file. -# Pin the version to the lower bound. -# -# e.g., if setup.py has "foo >= 1.14.0, < 2.0.0dev", -# Then this file should have foo==1.14.0 -click==7.0.0 -google-auth==0.4.0 -packaging==22.0 From ad19abee19fe481b5370f5806a4db596fc73ae60 Mon Sep 17 00:00:00 2001 From: chalmer lowe Date: Tue, 5 May 2026 13:19:06 -0400 Subject: [PATCH 4/5] test(testutils): Add version-scanner pragmas to test fixtures and modernize mypy --- packages/google-cloud-testutils/mypy.ini | 2 +- .../tests/unit/resources/bad_package/setup.py | 2 +- .../tests/unit/resources/good_package/setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/google-cloud-testutils/mypy.ini b/packages/google-cloud-testutils/mypy.ini index 8efb6f7241c8..569486a9ce60 100644 --- a/packages/google-cloud-testutils/mypy.ini +++ b/packages/google-cloud-testutils/mypy.ini @@ -1,3 +1,3 @@ [mypy] -python_version = 3.9 +python_version = 3.10 exclude = tests/unit/resources/ diff --git a/packages/google-cloud-testutils/tests/unit/resources/bad_package/setup.py b/packages/google-cloud-testutils/tests/unit/resources/bad_package/setup.py index a26333eace12..dd2897f2502a 100644 --- a/packages/google-cloud-testutils/tests/unit/resources/bad_package/setup.py +++ b/packages/google-cloud-testutils/tests/unit/resources/bad_package/setup.py @@ -36,5 +36,5 @@ ], install_requires=requirements, packages=setuptools.find_packages(), - python_requires=">=3.9", + python_requires=">=3.9", # version-scanner: ignore ) diff --git a/packages/google-cloud-testutils/tests/unit/resources/good_package/setup.py b/packages/google-cloud-testutils/tests/unit/resources/good_package/setup.py index 85e83788cd9c..6bca9f026b15 100644 --- a/packages/google-cloud-testutils/tests/unit/resources/good_package/setup.py +++ b/packages/google-cloud-testutils/tests/unit/resources/good_package/setup.py @@ -42,5 +42,5 @@ install_requires=requirements, extras_require=extras, packages=setuptools.find_packages(), - python_requires=">=3.9", + python_requires=">=3.9", # version-scanner: ignore ) From 866f7a073f4c3d65aca89296198eaf1a2907e5de Mon Sep 17 00:00:00 2001 From: chalmer lowe Date: Tue, 5 May 2026 13:55:01 -0400 Subject: [PATCH 5/5] fix(testutils): Modernize google-auth minimum bound to >=2.1.0 --- packages/google-cloud-testutils/setup.py | 2 +- packages/google-cloud-testutils/testing/constraints-3.10.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/google-cloud-testutils/setup.py b/packages/google-cloud-testutils/setup.py index 7d2b76c6370b..89e592a34965 100644 --- a/packages/google-cloud-testutils/setup.py +++ b/packages/google-cloud-testutils/setup.py @@ -55,7 +55,7 @@ platforms="Posix; MacOS X; Windows", include_package_data=True, install_requires=( - "google-auth >= 0.4.0", + "google-auth >= 2.1.0", "click>=7.0.0", "packaging>=22.0", ), diff --git a/packages/google-cloud-testutils/testing/constraints-3.10.txt b/packages/google-cloud-testutils/testing/constraints-3.10.txt index 98913de3c413..91463bdd5b6e 100644 --- a/packages/google-cloud-testutils/testing/constraints-3.10.txt +++ b/packages/google-cloud-testutils/testing/constraints-3.10.txt @@ -6,5 +6,5 @@ # e.g., if setup.py has "foo >= 1.14.0, < 2.0.0dev", # Then this file should have foo==1.14.0 click==7.0.0 -google-auth==0.4.0 +google-auth==2.1.0 packaging==22.0