From eaaceeb220169c054cef373155e6de59a77b12c3 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Mon, 12 Jan 2026 20:13:02 +0000 Subject: [PATCH 1/5] tests: update default python runtime for tests to 3.14 --- .github/workflows/lint.yml | 2 +- .github/workflows/mypy.yml | 2 +- .github/workflows/unittest.yml | 2 +- noxfile.py | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 1051da0b..3ed755f0 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -12,7 +12,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.14" - name: Install nox run: | python -m pip install --upgrade setuptools pip wheel diff --git a/.github/workflows/mypy.yml b/.github/workflows/mypy.yml index 3915cddd..8363e721 100644 --- a/.github/workflows/mypy.yml +++ b/.github/workflows/mypy.yml @@ -12,7 +12,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v5 with: - python-version: "3.8" + python-version: "3.14" - name: Install nox run: | python -m pip install --upgrade setuptools pip wheel diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index e381a05f..d6cda9b3 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -45,7 +45,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v5 with: - python-version: "3.8" + python-version: "3.14" - name: Install coverage run: | python -m pip install --upgrade setuptools pip wheel diff --git a/noxfile.py b/noxfile.py index e1a1c953..b5bbceb3 100644 --- a/noxfile.py +++ b/noxfile.py @@ -22,14 +22,14 @@ BLACK_VERSION = "black==23.7.0" BLACK_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"] -DEFAULT_PYTHON_VERSION = "3.8" +DEFAULT_PYTHON_VERSION = "3.14" CURRENT_DIRECTORY = os.path.abspath(os.path.dirname(__file__)) # Error if a python version is missing nox.options.error_on_missing_interpreters = True -@nox.session(python="3.10") +@nox.session(python=DEFAULT_PYTHON_VERSION) def lint(session): """Run linters. @@ -102,7 +102,7 @@ def unit(session): default(session) -@nox.session(python="3.10") +@nox.session(python=DEFAULT_PYTHON_VERSION) def lint_setup_py(session): """Verify that setup.py is valid (including RST check).""" From c2654bc7a4b61015c0d23645708194dca1655cf5 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Mon, 12 Jan 2026 20:14:24 +0000 Subject: [PATCH 2/5] fix build --- noxfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/noxfile.py b/noxfile.py index b5bbceb3..0ed903be 100644 --- a/noxfile.py +++ b/noxfile.py @@ -106,7 +106,7 @@ def unit(session): def lint_setup_py(session): """Verify that setup.py is valid (including RST check).""" - session.install("docutils", "Pygments") + session.install("docutils", "Pygments", "setuptools") session.run("python", "setup.py", "check", "--restructuredtext", "--strict") From 98b637e0a04b94885ebfeb3830d35ae22b19d9f4 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Mon, 12 Jan 2026 20:15:39 +0000 Subject: [PATCH 3/5] update warning filters --- pytest.ini | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/pytest.ini b/pytest.ini index d435a8e0..3605d0f0 100644 --- a/pytest.ini +++ b/pytest.ini @@ -9,10 +9,7 @@ filterwarnings = # Remove once the minimum supported version of `google-api-core` is 2.15.0 ignore:.*pkg_resources.declare_namespace:DeprecationWarning ignore:.*pkg_resources is deprecated as an API:DeprecationWarning - # Remove after support for Python 3.8 is dropped - ignore:You are using a non-supported Python version \(3\.8:DeprecationWarning - ignore:You are using a non-supported Python version \(3\.8:FutureWarning - # Remove after support for Python 3.9 is dropped - ignore:You are using a Python version \(3\.9:FutureWarning - # Remove after support for Python 3.10 is dropped - ignore:.*You are using a Python version \(3\.10:FutureWarning + # Remove after support for Python 3.8/3.9 is dropped + ignore:You are using a non-supported Python version:DeprecationWarning + ignore:You are using a non-supported Python version:FutureWarning + ignore:You are using a Python version:FutureWarning From 6970ade9df2660b4750ebf76ab4bc2c5b305cb0d Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Mon, 12 Jan 2026 20:16:50 +0000 Subject: [PATCH 4/5] add comment --- noxfile.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/noxfile.py b/noxfile.py index 0ed903be..d7012a05 100644 --- a/noxfile.py +++ b/noxfile.py @@ -122,6 +122,8 @@ def cover(session): session.run("coverage", "erase") +# Keep docs session at Python 3.10 until +# https://github.com/googleapis/sphinx-docfx-yaml/issues/345 is fixed @nox.session(python="3.10") def docs(session): """Build the docs for this library.""" @@ -158,6 +160,8 @@ def docs(session): ) +# Keep docfx session at Python 3.10 until +# https://github.com/googleapis/sphinx-docfx-yaml/issues/345 is fixed @nox.session(python="3.10") def docfx(session): """Build the docfx yaml files for this library.""" From c73b96c419edcdf73fa173be2ed668c37b7b2f9c Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Mon, 12 Jan 2026 20:18:51 +0000 Subject: [PATCH 5/5] update warning filters --- pytest.ini | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pytest.ini b/pytest.ini index 3605d0f0..dd32e71a 100644 --- a/pytest.ini +++ b/pytest.ini @@ -9,7 +9,6 @@ filterwarnings = # Remove once the minimum supported version of `google-api-core` is 2.15.0 ignore:.*pkg_resources.declare_namespace:DeprecationWarning ignore:.*pkg_resources is deprecated as an API:DeprecationWarning - # Remove after support for Python 3.8/3.9 is dropped - ignore:You are using a non-supported Python version:DeprecationWarning - ignore:You are using a non-supported Python version:FutureWarning - ignore:You are using a Python version:FutureWarning + # Remove after support for Python 3.8, 3.9 and/or 3.10+ is dropped + ignore:\s*You are using a (non-supported )?Python version \(?3\.(8|9|1[0-9]+):DeprecationWarning + ignore:\s*You are using a (non-supported )?Python version \(?3\.(8|9|1[0-9]+):FutureWarning