From e7840c1fbb0ddf9b064b21feec85971924fff9f9 Mon Sep 17 00:00:00 2001 From: chalmer lowe Date: Mon, 4 May 2026 12:20:26 -0400 Subject: [PATCH 1/4] fix(gapic-generator): remove Python 3.9 from unit tests This removes the temporary skip for Python 3.9 in the unit test session and removes it from ALL_PYTHON, completing the drop of Python 3.9 support. --- packages/gapic-generator/noxfile.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/gapic-generator/noxfile.py b/packages/gapic-generator/noxfile.py index 24bd8bd4c8d3..4c8370185e83 100644 --- a/packages/gapic-generator/noxfile.py +++ b/packages/gapic-generator/noxfile.py @@ -44,7 +44,6 @@ RUFF_EXCLUDES = "*golden*,*pb2.py,*pb2.pyi" ALL_PYTHON = ( - "3.9", "3.10", "3.11", "3.12", @@ -58,8 +57,7 @@ @nox.session(python=ALL_PYTHON) def unit(session): """Run the unit test suite.""" - if session.python == "3.9": - session.skip("Skipping Python 3.9 unit tests temporarily.") + session.install( # TODO(https://github.com/googleapis/gapic-generator-python/issues/2478): # Temporarily pin coverage to 7.11.0 From 0df644de264a8603ff55b222607265005d9ff8a6 Mon Sep 17 00:00:00 2001 From: chalmer lowe Date: Mon, 4 May 2026 12:20:31 -0400 Subject: [PATCH 2/4] fix(ci): remove Python 3.9 case from run_single_test.sh This removes the case for Python 3.9 in the unit test section, as we no longer run tests for this version. --- ci/run_single_test.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ci/run_single_test.sh b/ci/run_single_test.sh index fecd7a00bd5a..2eab61637ebd 100755 --- a/ci/run_single_test.sh +++ b/ci/run_single_test.sh @@ -70,10 +70,7 @@ case ${TEST_TYPE} in ;; unit) case ${PY_VERSION} in - "3.9") - nox -s unit-3.9 - retval=$? - ;; + "3.10") nox -s unit-3.10 retval=$? From 911e662c85b9e2a04044db5dc3bc92b39710a3e8 Mon Sep 17 00:00:00 2001 From: Chalmer Lowe Date: Mon, 4 May 2026 12:37:27 -0400 Subject: [PATCH 3/4] chore: removing blank line. --- ci/run_single_test.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/ci/run_single_test.sh b/ci/run_single_test.sh index 2eab61637ebd..376660a58b2a 100755 --- a/ci/run_single_test.sh +++ b/ci/run_single_test.sh @@ -70,7 +70,6 @@ case ${TEST_TYPE} in ;; unit) case ${PY_VERSION} in - "3.10") nox -s unit-3.10 retval=$? From 7e460dc0124b53e28a5444f1e4c9083c25e015c4 Mon Sep 17 00:00:00 2001 From: chalmer lowe Date: Mon, 4 May 2026 15:09:33 -0400 Subject: [PATCH 4/4] fix(ci): remove Python 3.9 from unittest matrix This removes Python 3.9 from the unittest matrix in unittest.yml. --- .github/workflows/unittest.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index 7b1809e1c5f0..abd2086719b6 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-22.04 strategy: matrix: - python: ['3.9', '3.10', "3.11", "3.12", "3.13", "3.14"] + python: ['3.10', "3.11", "3.12", "3.13", "3.14"] steps: - name: Checkout uses: actions/checkout@v4