diff --git a/notebooks/requirements-test.txt b/notebooks/requirements-test.txt index 15d066af319..c9e154ba440 100644 --- a/notebooks/requirements-test.txt +++ b/notebooks/requirements-test.txt @@ -1 +1 @@ -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" diff --git a/notebooks/samples/requirements-test.txt b/notebooks/samples/requirements-test.txt index 060ed652e0b..c9e154ba440 100644 --- a/notebooks/samples/requirements-test.txt +++ b/notebooks/samples/requirements-test.txt @@ -1 +1 @@ -pytest==8.2.0 \ No newline at end of file +pytest==9.0.3; python_version >= "3.10" diff --git a/noxfile_config.py b/noxfile_config.py index 2a0f115c38f..0973c8621c7 100644 --- a/noxfile_config.py +++ b/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.7", "3.8", "3.10", "3.11", "3.12"], + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/optimization/snippets/noxfile_config.py b/optimization/snippets/noxfile_config.py index 457e86f5413..0973c8621c7 100644 --- a/optimization/snippets/noxfile_config.py +++ b/optimization/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.7", "3.9", "3.10", "3.11"], + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/optimization/snippets/requirements-test.txt b/optimization/snippets/requirements-test.txt index 24ad1f29818..0161e90f7ad 100644 --- a/optimization/snippets/requirements-test.txt +++ b/optimization/snippets/requirements-test.txt @@ -1,2 +1,2 @@ -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" diff --git a/parametermanager/snippets-adk/agent_global/noxfile_config.py b/parametermanager/snippets-adk/agent_global/noxfile_config.py index 2a42a33e5e8..98a32b2e888 100644 --- a/parametermanager/snippets-adk/agent_global/noxfile_config.py +++ b/parametermanager/snippets-adk/agent_global/noxfile_config.py @@ -16,7 +16,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"], + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/parametermanager/snippets-adk/agent_global/requirements-test.txt b/parametermanager/snippets-adk/agent_global/requirements-test.txt index b3b2b3ca4cc..c9e154ba440 100644 --- a/parametermanager/snippets-adk/agent_global/requirements-test.txt +++ b/parametermanager/snippets-adk/agent_global/requirements-test.txt @@ -1 +1 @@ -pytest==9.0.3 +pytest==9.0.3; python_version >= "3.10" diff --git a/parametermanager/snippets-adk/agent_regional/noxfile_config.py b/parametermanager/snippets-adk/agent_regional/noxfile_config.py index 2a42a33e5e8..98a32b2e888 100644 --- a/parametermanager/snippets-adk/agent_regional/noxfile_config.py +++ b/parametermanager/snippets-adk/agent_regional/noxfile_config.py @@ -16,7 +16,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"], + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/parametermanager/snippets-adk/agent_regional/requirements-test.txt b/parametermanager/snippets-adk/agent_regional/requirements-test.txt index 15d066af319..c9e154ba440 100644 --- a/parametermanager/snippets-adk/agent_regional/requirements-test.txt +++ b/parametermanager/snippets-adk/agent_regional/requirements-test.txt @@ -1 +1 @@ -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" diff --git a/parametermanager/snippets/noxfile_config.py b/parametermanager/snippets/noxfile_config.py index 8123ee4c7e5..0076e5774d6 100644 --- a/parametermanager/snippets/noxfile_config.py +++ b/parametermanager/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.7", "3.8", "3.10", "3.11", "3.12"], + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/parametermanager/snippets/requirements-test.txt b/parametermanager/snippets/requirements-test.txt index 8807ca968dc..f70a9b5f321 100644 --- a/parametermanager/snippets/requirements-test.txt +++ b/parametermanager/snippets/requirements-test.txt @@ -1,3 +1,3 @@ -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" google-cloud-secret-manager==2.21.1 google-cloud-kms==3.2.1 diff --git a/people-and-planet-ai/geospatial-classification/noxfile_config.py b/people-and-planet-ai/geospatial-classification/noxfile_config.py index aa2149abb0d..b6cf4440b34 100644 --- a/people-and-planet-ai/geospatial-classification/noxfile_config.py +++ b/people-and-planet-ai/geospatial-classification/noxfile_config.py @@ -22,8 +22,8 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - # > ℹ️ Test only on Python 3.10. - "ignored_versions": ["2.7", "3.6", "3.7", "3.8", "3.9", "3.11", "3.12", "3.13"], + # > ℹ️ Test only on Python 3.14. + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/people-and-planet-ai/geospatial-classification/requirements-test.txt b/people-and-planet-ai/geospatial-classification/requirements-test.txt index 4a9e4d68dd3..60930e396c3 100644 --- a/people-and-planet-ai/geospatial-classification/requirements-test.txt +++ b/people-and-planet-ai/geospatial-classification/requirements-test.txt @@ -1,2 +1,2 @@ -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" pytest-xdist==3.3.0 diff --git a/people-and-planet-ai/geospatial-classification/serving_app/Dockerfile b/people-and-planet-ai/geospatial-classification/serving_app/Dockerfile index 24fe02c4ab2..9ffdf266bd0 100644 --- a/people-and-planet-ai/geospatial-classification/serving_app/Dockerfile +++ b/people-and-planet-ai/geospatial-classification/serving_app/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.9-slim +FROM python:3.14-slim WORKDIR /app diff --git a/people-and-planet-ai/image-classification/noxfile_config.py b/people-and-planet-ai/image-classification/noxfile_config.py index 6048504d2cd..df28cd818d6 100644 --- a/people-and-planet-ai/image-classification/noxfile_config.py +++ b/people-and-planet-ai/image-classification/noxfile_config.py @@ -23,7 +23,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. # NOTE: Apache Beam does not currently support Python 3.12. - "ignored_versions": ["2.7", "3.6", "3.7", "3.8", "3.9", "3.10", "3.12", "3.13"], + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/people-and-planet-ai/image-classification/requirements-test.txt b/people-and-planet-ai/image-classification/requirements-test.txt index ddf696ef541..21e891cc05a 100644 --- a/people-and-planet-ai/image-classification/requirements-test.txt +++ b/people-and-planet-ai/image-classification/requirements-test.txt @@ -1,3 +1,3 @@ google-cloud-storage==2.16.0 pytest-xdist==3.5.0 -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" diff --git a/people-and-planet-ai/land-cover-classification/noxfile_config.py b/people-and-planet-ai/land-cover-classification/noxfile_config.py index 228e1eb58f5..6a1ef14ed16 100644 --- a/people-and-planet-ai/land-cover-classification/noxfile_config.py +++ b/people-and-planet-ai/land-cover-classification/noxfile_config.py @@ -22,11 +22,11 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - # ℹ️ Test only in Python 3.9 since that's what Dataflow currently supports: + # ℹ️ Test only in Python 3.14 since that's what Dataflow currently supports: # https://cloud.google.com/dataflow/docs/support/beam-runtime-support - # "ignored_versions": ["2.7", "3.6", "3.7", "3.8", "3.10", "3.11"], + # "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # Temp disable until team has time for refactoring tests - "ignored_versions": ["2.7", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"], + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/people-and-planet-ai/land-cover-classification/requirements-test.txt b/people-and-planet-ai/land-cover-classification/requirements-test.txt index 7fbed6e8369..e7f296a21a0 100644 --- a/people-and-planet-ai/land-cover-classification/requirements-test.txt +++ b/people-and-planet-ai/land-cover-classification/requirements-test.txt @@ -4,4 +4,4 @@ importnb==2023.11.1 ipykernel==6.23.3 nbclient==0.8.0 pytest-xdist==3.3.0 -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" diff --git a/people-and-planet-ai/timeseries-classification/Dockerfile b/people-and-planet-ai/timeseries-classification/Dockerfile index 086b13d11fd..5ce823f7f22 100644 --- a/people-and-planet-ai/timeseries-classification/Dockerfile +++ b/people-and-planet-ai/timeseries-classification/Dockerfile @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM python:3.10-slim +FROM python:3.14-slim WORKDIR /pipeline @@ -25,5 +25,5 @@ RUN pip install --no-cache-dir --upgrade pip \ # Set the entrypoint to Apache Beam SDK worker launcher. # Check this matches the apache-beam version in the requirements.txt -COPY --from=apache/beam_python3.10_sdk:2.62.0 /opt/apache/beam /opt/apache/beam +COPY --from=apache/beam_python3.14_sdk:2.73.0 /opt/apache/beam /opt/apache/beam ENTRYPOINT [ "/opt/apache/beam/boot" ] diff --git a/people-and-planet-ai/timeseries-classification/noxfile_config.py b/people-and-planet-ai/timeseries-classification/noxfile_config.py index f8531486af2..ca7ea47357d 100644 --- a/people-and-planet-ai/timeseries-classification/noxfile_config.py +++ b/people-and-planet-ai/timeseries-classification/noxfile_config.py @@ -22,10 +22,11 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - # > ℹ️ Test only on Python 3.10. + # > ℹ️ Test only on Python 3.14. # > The Python version used is defined by the Dockerfile, so it's redundant # > to run multiple tests since they would all be running the same Dockerfile. - "ignored_versions": ["2.7", "3.6", "3.7", "3.8", "3.9", "3.11", "3.12", "3.13"], + # Note: Docker-based sample, testing only against version specified in Dockerfile (3.14) + "ignored_versions": ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/people-and-planet-ai/timeseries-classification/requirements-test.txt b/people-and-planet-ai/timeseries-classification/requirements-test.txt index c73bf42b80c..f840fc2a86e 100644 --- a/people-and-planet-ai/timeseries-classification/requirements-test.txt +++ b/people-and-planet-ai/timeseries-classification/requirements-test.txt @@ -1,3 +1,3 @@ google-api-python-client==2.131.0 pytest-xdist==3.3.0 -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" diff --git a/people-and-planet-ai/weather-forecasting/serving/Dockerfile.backup b/people-and-planet-ai/weather-forecasting/serving/Dockerfile.backup index 2ee37566e48..47113bf3d88 100644 --- a/people-and-planet-ai/weather-forecasting/serving/Dockerfile.backup +++ b/people-and-planet-ai/weather-forecasting/serving/Dockerfile.backup @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM python:slim +FROM python:3.14-slim WORKDIR /app COPY . ./ diff --git a/people-and-planet-ai/weather-forecasting/tests/dataset_tests/noxfile_config.py b/people-and-planet-ai/weather-forecasting/tests/dataset_tests/noxfile_config.py index 81b47f2ab34..16d3006025f 100644 --- a/people-and-planet-ai/weather-forecasting/tests/dataset_tests/noxfile_config.py +++ b/people-and-planet-ai/weather-forecasting/tests/dataset_tests/noxfile_config.py @@ -22,10 +22,10 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - # 💡 Only test with Python 3.10 - # "ignored_versions": ["2.7", "3.6", "3.7", "3.8", "3.9", "3.11"], + # 💡 Only test with Python 3.14 + # "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # Temp disable until team has time for refactoring tests - "ignored_versions": ["2.7", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"], + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/people-and-planet-ai/weather-forecasting/tests/dataset_tests/requirements-test.txt b/people-and-planet-ai/weather-forecasting/tests/dataset_tests/requirements-test.txt index f4245b7398e..15381c30591 100644 --- a/people-and-planet-ai/weather-forecasting/tests/dataset_tests/requirements-test.txt +++ b/people-and-planet-ai/weather-forecasting/tests/dataset_tests/requirements-test.txt @@ -1,4 +1,4 @@ ipykernel==6.23.3 nbclient==0.8.0 pytest-xdist==3.3.0 -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" diff --git a/people-and-planet-ai/weather-forecasting/tests/overview_tests/noxfile_config.py b/people-and-planet-ai/weather-forecasting/tests/overview_tests/noxfile_config.py index 08cdcbbe707..694f7e54512 100644 --- a/people-and-planet-ai/weather-forecasting/tests/overview_tests/noxfile_config.py +++ b/people-and-planet-ai/weather-forecasting/tests/overview_tests/noxfile_config.py @@ -22,8 +22,8 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - # 💡 Only test with Python 3.10 - "ignored_versions": ["2.7", "3.6", "3.7", "3.8", "3.9", "3.11", "3.12", "3.13"], + # 💡 Only test with Python 3.14 + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/people-and-planet-ai/weather-forecasting/tests/overview_tests/requirements-test.txt b/people-and-planet-ai/weather-forecasting/tests/overview_tests/requirements-test.txt index f4245b7398e..15381c30591 100644 --- a/people-and-planet-ai/weather-forecasting/tests/overview_tests/requirements-test.txt +++ b/people-and-planet-ai/weather-forecasting/tests/overview_tests/requirements-test.txt @@ -1,4 +1,4 @@ ipykernel==6.23.3 nbclient==0.8.0 pytest-xdist==3.3.0 -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" diff --git a/people-and-planet-ai/weather-forecasting/tests/predictions_tests/noxfile_config.py b/people-and-planet-ai/weather-forecasting/tests/predictions_tests/noxfile_config.py index 08cdcbbe707..694f7e54512 100644 --- a/people-and-planet-ai/weather-forecasting/tests/predictions_tests/noxfile_config.py +++ b/people-and-planet-ai/weather-forecasting/tests/predictions_tests/noxfile_config.py @@ -22,8 +22,8 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - # 💡 Only test with Python 3.10 - "ignored_versions": ["2.7", "3.6", "3.7", "3.8", "3.9", "3.11", "3.12", "3.13"], + # 💡 Only test with Python 3.14 + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/people-and-planet-ai/weather-forecasting/tests/predictions_tests/requirements-test.txt b/people-and-planet-ai/weather-forecasting/tests/predictions_tests/requirements-test.txt index f4245b7398e..15381c30591 100644 --- a/people-and-planet-ai/weather-forecasting/tests/predictions_tests/requirements-test.txt +++ b/people-and-planet-ai/weather-forecasting/tests/predictions_tests/requirements-test.txt @@ -1,4 +1,4 @@ ipykernel==6.23.3 nbclient==0.8.0 pytest-xdist==3.3.0 -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" diff --git a/people-and-planet-ai/weather-forecasting/tests/training_tests/noxfile_config.py b/people-and-planet-ai/weather-forecasting/tests/training_tests/noxfile_config.py index 08cdcbbe707..694f7e54512 100644 --- a/people-and-planet-ai/weather-forecasting/tests/training_tests/noxfile_config.py +++ b/people-and-planet-ai/weather-forecasting/tests/training_tests/noxfile_config.py @@ -22,8 +22,8 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - # 💡 Only test with Python 3.10 - "ignored_versions": ["2.7", "3.6", "3.7", "3.8", "3.9", "3.11", "3.12", "3.13"], + # 💡 Only test with Python 3.14 + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/people-and-planet-ai/weather-forecasting/tests/training_tests/requirements-test.txt b/people-and-planet-ai/weather-forecasting/tests/training_tests/requirements-test.txt index 316d7ea45ab..94ea22e57d3 100644 --- a/people-and-planet-ai/weather-forecasting/tests/training_tests/requirements-test.txt +++ b/people-and-planet-ai/weather-forecasting/tests/training_tests/requirements-test.txt @@ -2,4 +2,4 @@ ipykernel==6.23.3 nbclient==0.8.0 pytest-xdist==3.3.0 -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" diff --git a/practice-folder/beginner-sample/requirements-test.txt b/practice-folder/beginner-sample/requirements-test.txt index 15d066af319..c9e154ba440 100644 --- a/practice-folder/beginner-sample/requirements-test.txt +++ b/practice-folder/beginner-sample/requirements-test.txt @@ -1 +1 @@ -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" diff --git a/practice-folder/intermediate-sample/requirements-test.txt b/practice-folder/intermediate-sample/requirements-test.txt index 73e69569a52..dc96a119d19 100644 --- a/practice-folder/intermediate-sample/requirements-test.txt +++ b/practice-folder/intermediate-sample/requirements-test.txt @@ -1,2 +1,2 @@ google-cloud-storage==2.13.0 -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" diff --git a/practice-folder/noxfile_config.py b/practice-folder/noxfile_config.py index 8809d995c26..b7d8115d773 100644 --- a/practice-folder/noxfile_config.py +++ b/practice-folder/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.7"], + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/privateca/snippets/noxfile_config.py b/privateca/snippets/noxfile_config.py index 5125a5da533..b464de8ca06 100644 --- a/privateca/snippets/noxfile_config.py +++ b/privateca/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.7", "3.9", "3.10", "3.11"], + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/privateca/snippets/requirements-test.txt b/privateca/snippets/requirements-test.txt index bfeffa644e9..4bbc0153d24 100644 --- a/privateca/snippets/requirements-test.txt +++ b/privateca/snippets/requirements-test.txt @@ -1,4 +1,4 @@ -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" google-auth==2.38.0 cryptography==45.0.1 backoff==2.2.1 \ No newline at end of file diff --git a/profiler/appengine/flexible/noxfile_config.py b/profiler/appengine/flexible/noxfile_config.py index 5c4a4b39a25..3e4fbc74766 100644 --- a/profiler/appengine/flexible/noxfile_config.py +++ b/profiler/appengine/flexible/noxfile_config.py @@ -23,7 +23,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. # 3.11 is currently unsupported - "ignored_versions": ["2.7", "3.11", "3.12", "3.13"], + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/profiler/appengine/flexible/requirements-test.txt b/profiler/appengine/flexible/requirements-test.txt index 15d066af319..c9e154ba440 100644 --- a/profiler/appengine/flexible/requirements-test.txt +++ b/profiler/appengine/flexible/requirements-test.txt @@ -1 +1 @@ -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" diff --git a/profiler/appengine/standard_python37/noxfile_config.py b/profiler/appengine/standard_python37/noxfile_config.py index f61d176ce12..f27eeab556e 100644 --- a/profiler/appengine/standard_python37/noxfile_config.py +++ b/profiler/appengine/standard_python37/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"], + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/profiler/appengine/standard_python37/requirements-test.txt b/profiler/appengine/standard_python37/requirements-test.txt index c021c5b5b70..c9e154ba440 100644 --- a/profiler/appengine/standard_python37/requirements-test.txt +++ b/profiler/appengine/standard_python37/requirements-test.txt @@ -1 +1 @@ -pytest==7.2.2 +pytest==9.0.3; python_version >= "3.10" diff --git a/profiler/quickstart/noxfile_config.py b/profiler/quickstart/noxfile_config.py index aef7b534168..f27eeab556e 100644 --- a/profiler/quickstart/noxfile_config.py +++ b/profiler/quickstart/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.11"], + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/profiler/quickstart/requirements-test.txt b/profiler/quickstart/requirements-test.txt index 15d066af319..c9e154ba440 100644 --- a/profiler/quickstart/requirements-test.txt +++ b/profiler/quickstart/requirements-test.txt @@ -1 +1 @@ -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" diff --git a/pubsub/streaming-analytics/noxfile_config.py b/pubsub/streaming-analytics/noxfile_config.py index 17b48115e0c..932bef266b6 100644 --- a/pubsub/streaming-analytics/noxfile_config.py +++ b/pubsub/streaming-analytics/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6", "3.7", "3.8", "3.9", "3.14"], + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/pubsub/streaming-analytics/requirements-test.txt b/pubsub/streaming-analytics/requirements-test.txt index 15d066af319..c9e154ba440 100644 --- a/pubsub/streaming-analytics/requirements-test.txt +++ b/pubsub/streaming-analytics/requirements-test.txt @@ -1 +1 @@ -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" diff --git a/pubsublite/spark-connector/noxfile_config.py b/pubsublite/spark-connector/noxfile_config.py index 8cf1efb88b4..629508476e6 100644 --- a/pubsublite/spark-connector/noxfile_config.py +++ b/pubsublite/spark-connector/noxfile_config.py @@ -22,8 +22,8 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - # NOTE: We currently only run the test in Python 3.8. - "ignored_versions": ["2.7", "3.6", "3.7", "3.9", "3.10", "3.11"], + # NOTE: We currently only run the test in Python 3.14. + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/pubsublite/spark-connector/requirements-test.txt b/pubsublite/spark-connector/requirements-test.txt index b90e0072efc..98c5f8ce5f8 100644 --- a/pubsublite/spark-connector/requirements-test.txt +++ b/pubsublite/spark-connector/requirements-test.txt @@ -1,4 +1,4 @@ google-cloud-dataproc==5.4.3 google-cloud-pubsublite==1.11.1 -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" google-cloud-storage==2.9.0 diff --git a/recaptcha_enterprise/demosite/app/Dockerfile b/recaptcha_enterprise/demosite/app/Dockerfile index 101ec308050..e03b01c3ce2 100644 --- a/recaptcha_enterprise/demosite/app/Dockerfile +++ b/recaptcha_enterprise/demosite/app/Dockerfile @@ -16,7 +16,7 @@ # Use the official lightweight Python image. # https://hub.docker.com/_/python -FROM python:3.11-slim +FROM python:3.14-slim # Allow statements and log messages to immediately appear in the Knative logs ENV PYTHONUNBUFFERED True diff --git a/recaptcha_enterprise/snippets/noxfile_config.py b/recaptcha_enterprise/snippets/noxfile_config.py index 75d566657ce..b0171a442f5 100644 --- a/recaptcha_enterprise/snippets/noxfile_config.py +++ b/recaptcha_enterprise/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.7", "3.8", "3.10", "3.11"], + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/recaptcha_enterprise/snippets/requirements-test.txt b/recaptcha_enterprise/snippets/requirements-test.txt index 814cf66999a..c8433d91a3d 100644 --- a/recaptcha_enterprise/snippets/requirements-test.txt +++ b/recaptcha_enterprise/snippets/requirements-test.txt @@ -1,6 +1,6 @@ selenium==4.10.0 Flask==2.2.2 Werkzeug==2.3.8 -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" pytest-flask==1.2.0 webdriver-manager==4.0.2 \ No newline at end of file diff --git a/retail/interactive-tutorials/events/noxfile_config.py b/retail/interactive-tutorials/events/noxfile_config.py index 94eaaac27f5..b62583ba0f4 100644 --- a/retail/interactive-tutorials/events/noxfile_config.py +++ b/retail/interactive-tutorials/events/noxfile_config.py @@ -19,7 +19,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.7", "3.8", "3.10", "3.11"], + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # An envvar key for determining the project id to use. Change it # to 'PROJECT_NUMBER' if you want to opt in using a # build specific Cloud project. You can also use your own string diff --git a/retail/interactive-tutorials/events/requirements-test.txt b/retail/interactive-tutorials/events/requirements-test.txt index 7e9a7817af1..0e515abf285 100644 --- a/retail/interactive-tutorials/events/requirements-test.txt +++ b/retail/interactive-tutorials/events/requirements-test.txt @@ -1,3 +1,3 @@ -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" pytest-xdist==3.3.0 google-cloud-testutils==1.5.0 diff --git a/retail/interactive-tutorials/product/requirements-test.txt b/retail/interactive-tutorials/product/requirements-test.txt index 7e9a7817af1..0e515abf285 100644 --- a/retail/interactive-tutorials/product/requirements-test.txt +++ b/retail/interactive-tutorials/product/requirements-test.txt @@ -1,3 +1,3 @@ -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" pytest-xdist==3.3.0 google-cloud-testutils==1.5.0 diff --git a/retail/interactive-tutorials/search/noxfile_config.py b/retail/interactive-tutorials/search/noxfile_config.py index 2c248698ea7..a971867c46f 100644 --- a/retail/interactive-tutorials/search/noxfile_config.py +++ b/retail/interactive-tutorials/search/noxfile_config.py @@ -19,7 +19,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.7", "3.8", "3.10", "3.11"], + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # An envvar key for determining the project id to use. Change it # to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a # build specific Cloud project. You can also use your own string diff --git a/retail/interactive-tutorials/search/requirements-test.txt b/retail/interactive-tutorials/search/requirements-test.txt index 4a9e4d68dd3..60930e396c3 100644 --- a/retail/interactive-tutorials/search/requirements-test.txt +++ b/retail/interactive-tutorials/search/requirements-test.txt @@ -1,2 +1,2 @@ -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" pytest-xdist==3.3.0 diff --git a/retail/snippets/requirements-test.txt b/retail/snippets/requirements-test.txt index ad59a67d1f7..94944adc2f7 100644 --- a/retail/snippets/requirements-test.txt +++ b/retail/snippets/requirements-test.txt @@ -1,4 +1,4 @@ -pytest +pytest==9.0.3; python_version >= "3.10" pytest-xdist mock google-cloud-retail>=2.10.0 diff --git a/run/django/noxfile_config.py b/run/django/noxfile_config.py index e928b32a2d2..530fda35d75 100644 --- a/run/django/noxfile_config.py +++ b/run/django/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6", "3.7", "3.8"], + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # Old samples are opted out of enforcing Python type hints # All new samples should feature the "enforce_type_hints": True, diff --git a/run/django/requirements-test.txt b/run/django/requirements-test.txt index 60588b103c5..f0788b7f90e 100644 --- a/run/django/requirements-test.txt +++ b/run/django/requirements-test.txt @@ -1,4 +1,4 @@ backoff==2.2.1 -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" pytest-django==4.9.0 requests==2.31.0 diff --git a/run/hello-broken/Dockerfile b/run/hello-broken/Dockerfile index b14087fdd1c..f5683e1a388 100644 --- a/run/hello-broken/Dockerfile +++ b/run/hello-broken/Dockerfile @@ -16,7 +16,7 @@ # Use the official Python image. # https://hub.docker.com/_/python -FROM python:3.11 +FROM python:3.14 # Allow statements and log messages to immediately appear in the Cloud Run logs ENV PYTHONUNBUFFERED True diff --git a/run/hello-broken/noxfile_config.py b/run/hello-broken/noxfile_config.py index 96e1569c4e8..434acff4683 100644 --- a/run/hello-broken/noxfile_config.py +++ b/run/hello-broken/noxfile_config.py @@ -22,8 +22,9 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - # We only run the cloud run tests in py38 session. - "ignored_versions": ["2.7", "3.6", "3.7", "3.8"], + # We only run the cloud run tests in py314 session. + # Note: Docker-based sample, testing only against version specified in Dockerfile (3.14) + "ignored_versions": ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"], # An envvar key for determining the project id to use. Change it # to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a # build specific Cloud project. You can also use your own string diff --git a/run/hello-broken/requirements-test.txt b/run/hello-broken/requirements-test.txt index 70f7d483286..22eed6f0bd7 100644 --- a/run/hello-broken/requirements-test.txt +++ b/run/hello-broken/requirements-test.txt @@ -1,2 +1,2 @@ -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" requests==2.31.0 \ No newline at end of file diff --git a/run/hello-broken/requirements.txt b/run/hello-broken/requirements.txt index dbe489e3abe..afee035f317 100644 --- a/run/hello-broken/requirements.txt +++ b/run/hello-broken/requirements.txt @@ -1,6 +1,4 @@ Flask==3.0.3 -pytest==8.2.0; python_version > "3.0" -# pin pytest to 4.6.11 for Python2. -pytest==4.6.11; python_version < "3.0" +pytest==9.0.3; python_version >= "3.10" gunicorn==23.0.0 Werkzeug==3.0.3 diff --git a/run/helloworld/Dockerfile b/run/helloworld/Dockerfile index 88509b23084..2076c7f746a 100644 --- a/run/helloworld/Dockerfile +++ b/run/helloworld/Dockerfile @@ -16,7 +16,7 @@ # Use the official lightweight Python image. # https://hub.docker.com/_/python -FROM python:3.11-slim +FROM python:3.14-slim # Allow statements and log messages to immediately appear in the logs ENV PYTHONUNBUFFERED True diff --git a/run/helloworld/requirements-test.txt b/run/helloworld/requirements-test.txt index 15d066af319..c9e154ba440 100644 --- a/run/helloworld/requirements-test.txt +++ b/run/helloworld/requirements-test.txt @@ -1 +1 @@ -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" diff --git a/run/idp-sql/Dockerfile b/run/idp-sql/Dockerfile index 35b5eb73263..85f41418242 100644 --- a/run/idp-sql/Dockerfile +++ b/run/idp-sql/Dockerfile @@ -4,7 +4,7 @@ # Use the official Python image. # https://hub.docker.com/_/python -FROM python:3.11 +FROM python:3.14 # Send stdout/stderr out, do not buffer. ENV PYTHONUNBUFFERED 1 diff --git a/run/idp-sql/noxfile_config.py b/run/idp-sql/noxfile_config.py index cdad4b25033..09b26ed4695 100644 --- a/run/idp-sql/noxfile_config.py +++ b/run/idp-sql/noxfile_config.py @@ -22,8 +22,9 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - # We only run the cloud run tests in py39 session. - "ignored_versions": ["2.7", "3.6", "3.7", "3.8", "3.12", "3.13"], + # We only run the cloud run tests in py314 session. + # Note: Docker-based sample, testing only against version specified in Dockerfile (3.14) + "ignored_versions": ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"], "enforce_type_hints": True, # An envvar key for determining the project id to use. Change it # to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a diff --git a/run/idp-sql/requirements-test.txt b/run/idp-sql/requirements-test.txt index 15d066af319..c9e154ba440 100644 --- a/run/idp-sql/requirements-test.txt +++ b/run/idp-sql/requirements-test.txt @@ -1 +1 @@ -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" diff --git a/run/image-processing/Dockerfile b/run/image-processing/Dockerfile index 9c143da4a98..f706933dc58 100644 --- a/run/image-processing/Dockerfile +++ b/run/image-processing/Dockerfile @@ -14,7 +14,7 @@ # Use the official Python image. # https://hub.docker.com/_/python -FROM python:3.11 +FROM python:3.14 # Allow statements and log messages to immediately appear in the Cloud Run logs ENV PYTHONUNBUFFERED True diff --git a/run/image-processing/noxfile_config.py b/run/image-processing/noxfile_config.py index 96e1569c4e8..434acff4683 100644 --- a/run/image-processing/noxfile_config.py +++ b/run/image-processing/noxfile_config.py @@ -22,8 +22,9 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - # We only run the cloud run tests in py38 session. - "ignored_versions": ["2.7", "3.6", "3.7", "3.8"], + # We only run the cloud run tests in py314 session. + # Note: Docker-based sample, testing only against version specified in Dockerfile (3.14) + "ignored_versions": ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"], # An envvar key for determining the project id to use. Change it # to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a # build specific Cloud project. You can also use your own string diff --git a/run/image-processing/requirements-test.txt b/run/image-processing/requirements-test.txt index 3d81f0a8a54..fbb2a3cf045 100644 --- a/run/image-processing/requirements-test.txt +++ b/run/image-processing/requirements-test.txt @@ -1,2 +1,2 @@ -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" google-cloud-pubsub==2.28.0 diff --git a/run/jobs/requirements-test.txt b/run/jobs/requirements-test.txt index 058efde4989..d6193d1434c 100644 --- a/run/jobs/requirements-test.txt +++ b/run/jobs/requirements-test.txt @@ -1,3 +1,3 @@ backoff==2.2.1 -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" google-cloud-logging==3.11.4 diff --git a/run/logging-manual/Dockerfile b/run/logging-manual/Dockerfile index fb331105aca..4217df097eb 100644 --- a/run/logging-manual/Dockerfile +++ b/run/logging-manual/Dockerfile @@ -14,7 +14,7 @@ # Use the official Python image. # https://hub.docker.com/_/python -FROM python:3.11 +FROM python:3.14 # Allow statements and log messages to immediately appear in the Cloud Run logs ENV PYTHONUNBUFFERED True diff --git a/run/logging-manual/noxfile_config.py b/run/logging-manual/noxfile_config.py index 96e1569c4e8..434acff4683 100644 --- a/run/logging-manual/noxfile_config.py +++ b/run/logging-manual/noxfile_config.py @@ -22,8 +22,9 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - # We only run the cloud run tests in py38 session. - "ignored_versions": ["2.7", "3.6", "3.7", "3.8"], + # We only run the cloud run tests in py314 session. + # Note: Docker-based sample, testing only against version specified in Dockerfile (3.14) + "ignored_versions": ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"], # An envvar key for determining the project id to use. Change it # to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a # build specific Cloud project. You can also use your own string diff --git a/run/logging-manual/requirements-test.txt b/run/logging-manual/requirements-test.txt index cae36808290..8e436ecf1b5 100644 --- a/run/logging-manual/requirements-test.txt +++ b/run/logging-manual/requirements-test.txt @@ -1,2 +1,2 @@ -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" google-cloud-logging==3.15.0 diff --git a/run/logging-manual/requirements.txt b/run/logging-manual/requirements.txt index dbe489e3abe..afee035f317 100644 --- a/run/logging-manual/requirements.txt +++ b/run/logging-manual/requirements.txt @@ -1,6 +1,4 @@ Flask==3.0.3 -pytest==8.2.0; python_version > "3.0" -# pin pytest to 4.6.11 for Python2. -pytest==4.6.11; python_version < "3.0" +pytest==9.0.3; python_version >= "3.10" gunicorn==23.0.0 Werkzeug==3.0.3 diff --git a/run/markdown-preview/editor/Dockerfile b/run/markdown-preview/editor/Dockerfile index ba2b500b0b0..7212c08cb53 100644 --- a/run/markdown-preview/editor/Dockerfile +++ b/run/markdown-preview/editor/Dockerfile @@ -14,7 +14,7 @@ # Use the official Python image. # https://hub.docker.com/_/python -FROM python:3.11-slim +FROM python:3.14-slim # Allow statements and log messages to immediately appear in the Cloud Run logs ENV PYTHONUNBUFFERED True diff --git a/run/markdown-preview/editor/requirements-test.txt b/run/markdown-preview/editor/requirements-test.txt index 060ed652e0b..c9e154ba440 100644 --- a/run/markdown-preview/editor/requirements-test.txt +++ b/run/markdown-preview/editor/requirements-test.txt @@ -1 +1 @@ -pytest==8.2.0 \ No newline at end of file +pytest==9.0.3; python_version >= "3.10" diff --git a/run/markdown-preview/noxfile_config.py b/run/markdown-preview/noxfile_config.py index 96e1569c4e8..e936fc449e5 100644 --- a/run/markdown-preview/noxfile_config.py +++ b/run/markdown-preview/noxfile_config.py @@ -22,8 +22,8 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - # We only run the cloud run tests in py38 session. - "ignored_versions": ["2.7", "3.6", "3.7", "3.8"], + # We only run the cloud run tests in py314 session. + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # An envvar key for determining the project id to use. Change it # to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a # build specific Cloud project. You can also use your own string diff --git a/run/markdown-preview/renderer/Dockerfile b/run/markdown-preview/renderer/Dockerfile index ba2b500b0b0..7212c08cb53 100644 --- a/run/markdown-preview/renderer/Dockerfile +++ b/run/markdown-preview/renderer/Dockerfile @@ -14,7 +14,7 @@ # Use the official Python image. # https://hub.docker.com/_/python -FROM python:3.11-slim +FROM python:3.14-slim # Allow statements and log messages to immediately appear in the Cloud Run logs ENV PYTHONUNBUFFERED True diff --git a/run/markdown-preview/renderer/requirements-test.txt b/run/markdown-preview/renderer/requirements-test.txt index 15d066af319..c9e154ba440 100644 --- a/run/markdown-preview/renderer/requirements-test.txt +++ b/run/markdown-preview/renderer/requirements-test.txt @@ -1 +1 @@ -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" diff --git a/run/markdown-preview/requirements-test.txt b/run/markdown-preview/requirements-test.txt index afb320380b8..2696c78e37f 100644 --- a/run/markdown-preview/requirements-test.txt +++ b/run/markdown-preview/requirements-test.txt @@ -1,4 +1,4 @@ backoff==2.2.1 -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" google-auth==2.38.0 google-api-python-client==2.131.0 diff --git a/run/mcp-server/Dockerfile b/run/mcp-server/Dockerfile index 9f8d405ca8a..5a53b08cce9 100644 --- a/run/mcp-server/Dockerfile +++ b/run/mcp-server/Dockerfile @@ -14,7 +14,7 @@ # [START cloudrun_mcpserver_dockerfile_python] # Use the official Python image -FROM python:3.13-slim +FROM python:3.14-slim # Install uv COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ diff --git a/run/noxfile_config.py b/run/noxfile_config.py index 92da6db44d5..c25029080d3 100644 --- a/run/noxfile_config.py +++ b/run/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.7", "3.8", "3.10", "3.11"], + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/run/pubsub/Dockerfile b/run/pubsub/Dockerfile index 8750d59d28b..cee20723dd6 100644 --- a/run/pubsub/Dockerfile +++ b/run/pubsub/Dockerfile @@ -16,7 +16,7 @@ # Use the official Python image. # https://hub.docker.com/_/python -FROM python:3.11 +FROM python:3.14 # Allow statements and log messages to immediately appear in the Cloud Run logs ENV PYTHONUNBUFFERED True diff --git a/run/pubsub/noxfile_config.py b/run/pubsub/noxfile_config.py index 96e1569c4e8..434acff4683 100644 --- a/run/pubsub/noxfile_config.py +++ b/run/pubsub/noxfile_config.py @@ -22,8 +22,9 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - # We only run the cloud run tests in py38 session. - "ignored_versions": ["2.7", "3.6", "3.7", "3.8"], + # We only run the cloud run tests in py314 session. + # Note: Docker-based sample, testing only against version specified in Dockerfile (3.14) + "ignored_versions": ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"], # An envvar key for determining the project id to use. Change it # to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a # build specific Cloud project. You can also use your own string diff --git a/run/pubsub/requirements-test.txt b/run/pubsub/requirements-test.txt index 305f4f14156..b9a2484d959 100644 --- a/run/pubsub/requirements-test.txt +++ b/run/pubsub/requirements-test.txt @@ -1,4 +1,4 @@ backoff==2.2.1 -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" google-cloud-logging==3.15.0 google-cloud-pubsub==2.36.0 diff --git a/run/pubsub/requirements.txt b/run/pubsub/requirements.txt index dbe489e3abe..afee035f317 100644 --- a/run/pubsub/requirements.txt +++ b/run/pubsub/requirements.txt @@ -1,6 +1,4 @@ Flask==3.0.3 -pytest==8.2.0; python_version > "3.0" -# pin pytest to 4.6.11 for Python2. -pytest==4.6.11; python_version < "3.0" +pytest==9.0.3; python_version >= "3.10" gunicorn==23.0.0 Werkzeug==3.0.3 diff --git a/run/service-auth/requirements-test.txt b/run/service-auth/requirements-test.txt index de9737aeaef..975d5ee58c2 100644 --- a/run/service-auth/requirements-test.txt +++ b/run/service-auth/requirements-test.txt @@ -1,2 +1,2 @@ -pytest==8.3.5 +pytest==9.0.3; python_version >= "3.10" backoff==2.2.1 diff --git a/run/system-package/Dockerfile b/run/system-package/Dockerfile index 9abfd65457f..7e16036d31e 100644 --- a/run/system-package/Dockerfile +++ b/run/system-package/Dockerfile @@ -14,7 +14,7 @@ # Use the official Python image. # https://hub.docker.com/_/python -FROM python:3.11 +FROM python:3.14 # Allow statements and log messages to immediately appear in the Cloud Run logs ENV PYTHONUNBUFFERED True diff --git a/run/system-package/noxfile_config.py b/run/system-package/noxfile_config.py index 96e1569c4e8..434acff4683 100644 --- a/run/system-package/noxfile_config.py +++ b/run/system-package/noxfile_config.py @@ -22,8 +22,9 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - # We only run the cloud run tests in py38 session. - "ignored_versions": ["2.7", "3.6", "3.7", "3.8"], + # We only run the cloud run tests in py314 session. + # Note: Docker-based sample, testing only against version specified in Dockerfile (3.14) + "ignored_versions": ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"], # An envvar key for determining the project id to use. Change it # to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a # build specific Cloud project. You can also use your own string diff --git a/run/system-package/requirements-test.txt b/run/system-package/requirements-test.txt index 70f7d483286..22eed6f0bd7 100644 --- a/run/system-package/requirements-test.txt +++ b/run/system-package/requirements-test.txt @@ -1,2 +1,2 @@ -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" requests==2.31.0 \ No newline at end of file diff --git a/run/system-package/requirements.txt b/run/system-package/requirements.txt index a4bc11c9da5..afee035f317 100644 --- a/run/system-package/requirements.txt +++ b/run/system-package/requirements.txt @@ -1,4 +1,4 @@ Flask==3.0.3 -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" gunicorn==23.0.0 Werkzeug==3.0.3 diff --git a/secretmanager/snippets-adk/agent_global/noxfile_config.py b/secretmanager/snippets-adk/agent_global/noxfile_config.py index 873ef83d52a..94f05ebf4a6 100644 --- a/secretmanager/snippets-adk/agent_global/noxfile_config.py +++ b/secretmanager/snippets-adk/agent_global/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"], + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/secretmanager/snippets-adk/agent_global/requirements-test.txt b/secretmanager/snippets-adk/agent_global/requirements-test.txt index b3b2b3ca4cc..c9e154ba440 100644 --- a/secretmanager/snippets-adk/agent_global/requirements-test.txt +++ b/secretmanager/snippets-adk/agent_global/requirements-test.txt @@ -1 +1 @@ -pytest==9.0.3 +pytest==9.0.3; python_version >= "3.10" diff --git a/secretmanager/snippets-adk/agent_regional/noxfile_config.py b/secretmanager/snippets-adk/agent_regional/noxfile_config.py index 873ef83d52a..94f05ebf4a6 100644 --- a/secretmanager/snippets-adk/agent_regional/noxfile_config.py +++ b/secretmanager/snippets-adk/agent_regional/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"], + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/secretmanager/snippets-adk/agent_regional/requirements-test.txt b/secretmanager/snippets-adk/agent_regional/requirements-test.txt index b3b2b3ca4cc..c9e154ba440 100644 --- a/secretmanager/snippets-adk/agent_regional/requirements-test.txt +++ b/secretmanager/snippets-adk/agent_regional/requirements-test.txt @@ -1 +1 @@ -pytest==9.0.3 +pytest==9.0.3; python_version >= "3.10" diff --git a/secretmanager/snippets/noxfile_config.py b/secretmanager/snippets/noxfile_config.py index 71e6547cf58..94f05ebf4a6 100644 --- a/secretmanager/snippets/noxfile_config.py +++ b/secretmanager/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.7", "3.8", "3.10", "3.11"], + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/secretmanager/snippets/requirements-test.txt b/secretmanager/snippets/requirements-test.txt index 15d066af319..c9e154ba440 100644 --- a/secretmanager/snippets/requirements-test.txt +++ b/secretmanager/snippets/requirements-test.txt @@ -1 +1 @@ -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" diff --git a/securitycenter/snippets/noxfile_config.py b/securitycenter/snippets/noxfile_config.py index cb835de26ca..6e1da8f73ef 100644 --- a/securitycenter/snippets/noxfile_config.py +++ b/securitycenter/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.7", "3.8", "3.10", "3.11"], + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # An envvar key for determining the project id to use. Change it # to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a # build specific Cloud project. You can also use your own string diff --git a/securitycenter/snippets/requirements-test.txt b/securitycenter/snippets/requirements-test.txt index e8c3b8ea422..483327066ed 100644 --- a/securitycenter/snippets/requirements-test.txt +++ b/securitycenter/snippets/requirements-test.txt @@ -1,3 +1,3 @@ backoff==2.2.1 -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" google-cloud-bigquery==3.30.0 diff --git a/securitycenter/snippets_management_api/noxfile_config.py b/securitycenter/snippets_management_api/noxfile_config.py index dab1f337e81..06a573096ad 100644 --- a/securitycenter/snippets_management_api/noxfile_config.py +++ b/securitycenter/snippets_management_api/noxfile_config.py @@ -25,7 +25,7 @@ # You can opt out from the test for specific Python versions. # SKIPPED VERSIONS: due to concurrency issues editing multiple org level # custom modules, only test these samples on latest Python. - "ignored_versions": ["2.7", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"], + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # An envvar key for determining the project id to use. Change it # to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a # build specific Cloud project. You can also use your own string diff --git a/securitycenter/snippets_management_api/requirements-test.txt b/securitycenter/snippets_management_api/requirements-test.txt index bdda8c985a2..2b9135fae4c 100644 --- a/securitycenter/snippets_management_api/requirements-test.txt +++ b/securitycenter/snippets_management_api/requirements-test.txt @@ -1,4 +1,4 @@ backoff==2.2.1 -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" google-cloud-bigquery==3.27.0 google-cloud-securitycentermanagement==0.1.21 diff --git a/securitycenter/snippets_v2/noxfile_config.py b/securitycenter/snippets_v2/noxfile_config.py index 2303f240281..b8563a5df82 100644 --- a/securitycenter/snippets_v2/noxfile_config.py +++ b/securitycenter/snippets_v2/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.7", "3.8", "3.10", "3.11"], + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # An envvar key for determining the project id to use. Change it # to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a # build specific Cloud project. You can also use your own string diff --git a/securitycenter/snippets_v2/requirements-test.txt b/securitycenter/snippets_v2/requirements-test.txt index 367779765df..4f3e0f8aff2 100644 --- a/securitycenter/snippets_v2/requirements-test.txt +++ b/securitycenter/snippets_v2/requirements-test.txt @@ -1,3 +1,3 @@ backoff==2.2.1 -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" google-cloud-bigquery==3.27.0 diff --git a/service_extensions/callouts/add_header/noxfile_config.py b/service_extensions/callouts/add_header/noxfile_config.py index ef7d95212ec..de0aa8b0bd2 100644 --- a/service_extensions/callouts/add_header/noxfile_config.py +++ b/service_extensions/callouts/add_header/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # Supported versions are >= 3.7 as per https://pypi.org/project/grpcio/ - "ignored_versions": ["2.7", "3.6", "3.7", "3.12", "3.13"], # "3.9", "3.8", "3.10", "3.11" + "ignored_versions": ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"], # "3.9", "3.8", "3.10", "3.11" # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/service_extensions/callouts/add_header/requirements-test.txt b/service_extensions/callouts/add_header/requirements-test.txt index 15d066af319..c9e154ba440 100644 --- a/service_extensions/callouts/add_header/requirements-test.txt +++ b/service_extensions/callouts/add_header/requirements-test.txt @@ -1 +1 @@ -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" diff --git a/servicedirectory/noxfile_config.py b/servicedirectory/noxfile_config.py index 9a4b880f934..0973c8621c7 100644 --- a/servicedirectory/noxfile_config.py +++ b/servicedirectory/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.7", "3.8", "3.10", "3.11"], + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/servicedirectory/requirements-test.txt b/servicedirectory/requirements-test.txt index f3230681cda..79932f83530 100644 --- a/servicedirectory/requirements-test.txt +++ b/servicedirectory/requirements-test.txt @@ -1,2 +1,2 @@ backoff==2.2.1 -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" diff --git a/speech/microphone/noxfile_config.py b/speech/microphone/noxfile_config.py index 0ec540a7255..91367c2b014 100644 --- a/speech/microphone/noxfile_config.py +++ b/speech/microphone/noxfile_config.py @@ -15,7 +15,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.7", "3.8", "3.10", "3.11", "3.12", "3.13"], + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/speech/microphone/requirements-test.txt b/speech/microphone/requirements-test.txt index 15d066af319..c9e154ba440 100644 --- a/speech/microphone/requirements-test.txt +++ b/speech/microphone/requirements-test.txt @@ -1 +1 @@ -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" diff --git a/speech/noxfile_config.py b/speech/noxfile_config.py index 9a4b880f934..0973c8621c7 100644 --- a/speech/noxfile_config.py +++ b/speech/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.7", "3.8", "3.10", "3.11"], + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/speech/snippets/requirements-test.txt b/speech/snippets/requirements-test.txt index ffe1c50e113..b85518d5117 100644 --- a/speech/snippets/requirements-test.txt +++ b/speech/snippets/requirements-test.txt @@ -1,3 +1,3 @@ backoff==2.2.1 flaky==3.8.1 -pytest==8.2.0 \ No newline at end of file +pytest==9.0.3; python_version >= "3.10" diff --git a/storage/s3-sdk/requirements-test.txt b/storage/s3-sdk/requirements-test.txt index 6ab6579568a..d3a2213188b 100644 --- a/storage/s3-sdk/requirements-test.txt +++ b/storage/s3-sdk/requirements-test.txt @@ -1,5 +1,5 @@ backoff==2.2.1; python_version < "3.7" backoff==2.2.1; python_version >= "3.7" -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" google-cloud-storage==2.9.0; python_version < '3.7' google-cloud-storage==2.9.0; python_version > '3.6' diff --git a/storage/samples/snippets/noxfile_config.py b/storage/samples/snippets/noxfile_config.py index 7eba203a4b4..714de21685c 100644 --- a/storage/samples/snippets/noxfile_config.py +++ b/storage/samples/snippets/noxfile_config.py @@ -81,7 +81,7 @@ def get_cloud_kms_key(): TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - 'ignored_versions': ["2.7", "3.6", "3.7", "3.11", "3.12", "3.13"], + 'ignored_versions': ["3.8", "3.9", "3.11", "3.12", "3.13"], # An envvar key for determining the project id to use. Change it # to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a diff --git a/storage/samples/snippets/requirements-test.txt b/storage/samples/snippets/requirements-test.txt index 5644295d03e..e15cc53dd0f 100644 --- a/storage/samples/snippets/requirements-test.txt +++ b/storage/samples/snippets/requirements-test.txt @@ -1,4 +1,3 @@ -pytest===7.4.4; python_version == '3.7' -pytest==8.3.5; python_version >= '3.8' +pytest==9.0.3; python_version >= "3.10" mock==5.2.0 backoff==2.2.1 diff --git a/storage/signed_urls/requirements-test.txt b/storage/signed_urls/requirements-test.txt index 15d066af319..c9e154ba440 100644 --- a/storage/signed_urls/requirements-test.txt +++ b/storage/signed_urls/requirements-test.txt @@ -1 +1 @@ -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" diff --git a/storagecontrol/noxfile_config.py b/storagecontrol/noxfile_config.py index 8b10121ac24..7ba3499623e 100644 --- a/storagecontrol/noxfile_config.py +++ b/storagecontrol/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.7", "3.8", "3.11", "3.12", "3.13"], + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/storagecontrol/requirements-test.txt b/storagecontrol/requirements-test.txt index f2e02a98e66..2f210f53aa8 100644 --- a/storagecontrol/requirements-test.txt +++ b/storagecontrol/requirements-test.txt @@ -1,2 +1,2 @@ -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" google-cloud-storage==2.17.0 \ No newline at end of file diff --git a/storagetransfer/noxfile_config.py b/storagetransfer/noxfile_config.py index 5f01579a0c9..8b8def111b0 100644 --- a/storagetransfer/noxfile_config.py +++ b/storagetransfer/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.7", "3.8", "3.10", "3.11"], + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/storagetransfer/requirements-test.txt b/storagetransfer/requirements-test.txt index c43d6e65095..c6bf79da422 100644 --- a/storagetransfer/requirements-test.txt +++ b/storagetransfer/requirements-test.txt @@ -6,4 +6,4 @@ google-cloud-pubsub==2.28.0 google-cloud-storage==2.9.0; python_version < '3.7' google-cloud-storage==2.9.0; python_version > '3.6' google-cloud-secret-manager==2.16.1 -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" diff --git a/talent/noxfile_config.py b/talent/noxfile_config.py index ef5f03e58be..a0ed2d7cfd3 100644 --- a/talent/noxfile_config.py +++ b/talent/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.7", "3.8", "3.10", "3.11"], + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # An envvar key for determining the project id to use. Change it # to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a # build specific Cloud project. You can also use your own string diff --git a/talent/requirements-test.txt b/talent/requirements-test.txt index 15d066af319..c9e154ba440 100644 --- a/talent/requirements-test.txt +++ b/talent/requirements-test.txt @@ -1 +1 @@ -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" diff --git a/texttospeech/snippets/requirements-test.txt b/texttospeech/snippets/requirements-test.txt index 15d066af319..c9e154ba440 100644 --- a/texttospeech/snippets/requirements-test.txt +++ b/texttospeech/snippets/requirements-test.txt @@ -1 +1 @@ -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" diff --git a/tpu/noxfile_config.py b/tpu/noxfile_config.py index 9a4b880f934..0973c8621c7 100644 --- a/tpu/noxfile_config.py +++ b/tpu/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.7", "3.8", "3.10", "3.11"], + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/tpu/requirements-test.txt b/tpu/requirements-test.txt index 15d066af319..c9e154ba440 100644 --- a/tpu/requirements-test.txt +++ b/tpu/requirements-test.txt @@ -1 +1 @@ -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" diff --git a/trace/cloud-trace-demo-app-opentelemetry/app/Dockerfile b/trace/cloud-trace-demo-app-opentelemetry/app/Dockerfile index 0e1124bf3ca..ff4e4207bdc 100644 --- a/trace/cloud-trace-demo-app-opentelemetry/app/Dockerfile +++ b/trace/cloud-trace-demo-app-opentelemetry/app/Dockerfile @@ -14,7 +14,7 @@ # Use the official lightweight Python image. # https://hub.docker.com/_/python -FROM python:3.11-slim +FROM python:3.14-slim RUN pip3 install --upgrade pip diff --git a/trace/cloud-trace-demo-app-opentelemetry/app/requirements-test.txt b/trace/cloud-trace-demo-app-opentelemetry/app/requirements-test.txt index 15d066af319..c9e154ba440 100644 --- a/trace/cloud-trace-demo-app-opentelemetry/app/requirements-test.txt +++ b/trace/cloud-trace-demo-app-opentelemetry/app/requirements-test.txt @@ -1 +1 @@ -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" diff --git a/trace/trace-python-sample-opentelemetry/noxfile_config.py b/trace/trace-python-sample-opentelemetry/noxfile_config.py index 25d1d4e081c..bf200ff2d5c 100644 --- a/trace/trace-python-sample-opentelemetry/noxfile_config.py +++ b/trace/trace-python-sample-opentelemetry/noxfile_config.py @@ -22,10 +22,10 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - # > ℹ️ Test only on Python 3.10. + # > ℹ️ Test only on Python 3.14. # > The Python version used is defined by the Dockerfile, so it's redundant # > to run multiple tests since they would all be running the same Dockerfile. - "ignored_versions": ["2.7", "3.6", "3.7", "3.9", "3.11", "3.12", "3.13"], + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them # "enforce_type_hints": True, diff --git a/trace/trace-python-sample-opentelemetry/requirements-test.txt b/trace/trace-python-sample-opentelemetry/requirements-test.txt index 15d066af319..c9e154ba440 100644 --- a/trace/trace-python-sample-opentelemetry/requirements-test.txt +++ b/trace/trace-python-sample-opentelemetry/requirements-test.txt @@ -1 +1 @@ -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" diff --git a/translate/samples/snippets/hybrid_glossaries/requirements-test.txt b/translate/samples/snippets/hybrid_glossaries/requirements-test.txt index 15d066af319..c9e154ba440 100644 --- a/translate/samples/snippets/hybrid_glossaries/requirements-test.txt +++ b/translate/samples/snippets/hybrid_glossaries/requirements-test.txt @@ -1 +1 @@ -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" diff --git a/translate/samples/snippets/noxfile_config.py b/translate/samples/snippets/noxfile_config.py index b9d835eefee..0973c8621c7 100644 --- a/translate/samples/snippets/noxfile_config.py +++ b/translate/samples/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.7", "3.8"], + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/translate/samples/snippets/requirements-test.txt b/translate/samples/snippets/requirements-test.txt index d57b0bfd0ab..b85518d5117 100644 --- a/translate/samples/snippets/requirements-test.txt +++ b/translate/samples/snippets/requirements-test.txt @@ -1,3 +1,3 @@ backoff==2.2.1 flaky==3.8.1 -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" diff --git a/video/live-stream/noxfile_config.py b/video/live-stream/noxfile_config.py index 359b876b767..1b9d9e4a580 100644 --- a/video/live-stream/noxfile_config.py +++ b/video/live-stream/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.7", "3.8", "3.10", "3.11"], + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/video/live-stream/requirements-test.txt b/video/live-stream/requirements-test.txt index 060ed652e0b..c9e154ba440 100644 --- a/video/live-stream/requirements-test.txt +++ b/video/live-stream/requirements-test.txt @@ -1 +1 @@ -pytest==8.2.0 \ No newline at end of file +pytest==9.0.3; python_version >= "3.10" diff --git a/video/stitcher/noxfile_config.py b/video/stitcher/noxfile_config.py index 68825a3b2dc..5ed96a67651 100644 --- a/video/stitcher/noxfile_config.py +++ b/video/stitcher/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.7", "3.8", "3.10", "3.11"], + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/video/stitcher/requirements-test.txt b/video/stitcher/requirements-test.txt index 70f7d483286..22eed6f0bd7 100644 --- a/video/stitcher/requirements-test.txt +++ b/video/stitcher/requirements-test.txt @@ -1,2 +1,2 @@ -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" requests==2.31.0 \ No newline at end of file diff --git a/video/transcoder/noxfile_config.py b/video/transcoder/noxfile_config.py index 11bc9f65769..f27eeab556e 100644 --- a/video/transcoder/noxfile_config.py +++ b/video/transcoder/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.7", "3.8", "3.10", "3.11"], + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/video/transcoder/requirements-test.txt b/video/transcoder/requirements-test.txt index e4c974c1f18..186ff6e30d6 100644 --- a/video/transcoder/requirements-test.txt +++ b/video/transcoder/requirements-test.txt @@ -1,3 +1,3 @@ backoff==2.2.1 google-cloud-storage==2.9.0 -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" diff --git a/videointelligence/samples/analyze/requirements-test.txt b/videointelligence/samples/analyze/requirements-test.txt index 632e5ad15a8..0d2bade1bed 100644 --- a/videointelligence/samples/analyze/requirements-test.txt +++ b/videointelligence/samples/analyze/requirements-test.txt @@ -1,3 +1,3 @@ backoff==2.2.1 -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" flaky==3.8.1 diff --git a/videointelligence/samples/labels/requirements-test.txt b/videointelligence/samples/labels/requirements-test.txt index 15d066af319..c9e154ba440 100644 --- a/videointelligence/samples/labels/requirements-test.txt +++ b/videointelligence/samples/labels/requirements-test.txt @@ -1 +1 @@ -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" diff --git a/videointelligence/samples/quickstart/requirements-test.txt b/videointelligence/samples/quickstart/requirements-test.txt index 15d066af319..c9e154ba440 100644 --- a/videointelligence/samples/quickstart/requirements-test.txt +++ b/videointelligence/samples/quickstart/requirements-test.txt @@ -1 +1 @@ -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" diff --git a/videointelligence/samples/shotchange/requirements-test.txt b/videointelligence/samples/shotchange/requirements-test.txt index 15d066af319..c9e154ba440 100644 --- a/videointelligence/samples/shotchange/requirements-test.txt +++ b/videointelligence/samples/shotchange/requirements-test.txt @@ -1 +1 @@ -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" diff --git a/vision/snippets/crop_hints/noxfile_config.py b/vision/snippets/crop_hints/noxfile_config.py index 2f13da01288..65ffecbfbc5 100644 --- a/vision/snippets/crop_hints/noxfile_config.py +++ b/vision/snippets/crop_hints/noxfile_config.py @@ -23,5 +23,5 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. # Pillow 9.0.0 does not support python 3.6 - "ignored_versions": ["2.7", "3.7", "3.8", "3.10", "3.11"], + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], } diff --git a/vision/snippets/crop_hints/requirements-test.txt b/vision/snippets/crop_hints/requirements-test.txt index 15d066af319..c9e154ba440 100644 --- a/vision/snippets/crop_hints/requirements-test.txt +++ b/vision/snippets/crop_hints/requirements-test.txt @@ -1 +1 @@ -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" diff --git a/vision/snippets/detect/requirements-test.txt b/vision/snippets/detect/requirements-test.txt index 632e5ad15a8..0d2bade1bed 100644 --- a/vision/snippets/detect/requirements-test.txt +++ b/vision/snippets/detect/requirements-test.txt @@ -1,3 +1,3 @@ backoff==2.2.1 -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" flaky==3.8.1 diff --git a/vision/snippets/document_text/noxfile_config.py b/vision/snippets/document_text/noxfile_config.py index 2f13da01288..65ffecbfbc5 100644 --- a/vision/snippets/document_text/noxfile_config.py +++ b/vision/snippets/document_text/noxfile_config.py @@ -23,5 +23,5 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. # Pillow 9.0.0 does not support python 3.6 - "ignored_versions": ["2.7", "3.7", "3.8", "3.10", "3.11"], + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], } diff --git a/vision/snippets/document_text/requirements-test.txt b/vision/snippets/document_text/requirements-test.txt index 15d066af319..c9e154ba440 100644 --- a/vision/snippets/document_text/requirements-test.txt +++ b/vision/snippets/document_text/requirements-test.txt @@ -1 +1 @@ -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" diff --git a/vision/snippets/face_detection/noxfile_config.py b/vision/snippets/face_detection/noxfile_config.py index 2f13da01288..65ffecbfbc5 100644 --- a/vision/snippets/face_detection/noxfile_config.py +++ b/vision/snippets/face_detection/noxfile_config.py @@ -23,5 +23,5 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. # Pillow 9.0.0 does not support python 3.6 - "ignored_versions": ["2.7", "3.7", "3.8", "3.10", "3.11"], + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], } diff --git a/vision/snippets/face_detection/requirements-test.txt b/vision/snippets/face_detection/requirements-test.txt index 15d066af319..c9e154ba440 100644 --- a/vision/snippets/face_detection/requirements-test.txt +++ b/vision/snippets/face_detection/requirements-test.txt @@ -1 +1 @@ -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" diff --git a/vision/snippets/product_search/requirements-test.txt b/vision/snippets/product_search/requirements-test.txt index 70114e31320..6dfe34af021 100644 --- a/vision/snippets/product_search/requirements-test.txt +++ b/vision/snippets/product_search/requirements-test.txt @@ -1,2 +1,2 @@ -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" flaky==3.8.1 \ No newline at end of file diff --git a/vision/snippets/quickstart/requirements-test.txt b/vision/snippets/quickstart/requirements-test.txt index 15d066af319..c9e154ba440 100644 --- a/vision/snippets/quickstart/requirements-test.txt +++ b/vision/snippets/quickstart/requirements-test.txt @@ -1 +1 @@ -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" diff --git a/vision/snippets/web/requirements-test.txt b/vision/snippets/web/requirements-test.txt index f1684cd8061..8b8e28c484c 100644 --- a/vision/snippets/web/requirements-test.txt +++ b/vision/snippets/web/requirements-test.txt @@ -1,2 +1,2 @@ flaky==3.8.1 -pytest==8.2.0 +pytest==9.0.3; python_version >= "3.10" diff --git a/vmwareengine/cloud-client/noxfile_config.py b/vmwareengine/cloud-client/noxfile_config.py index db7d1a27329..102ab884701 100644 --- a/vmwareengine/cloud-client/noxfile_config.py +++ b/vmwareengine/cloud-client/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.7", "3.8", "3.10", "3.11"], + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # An envvar key for determining the project id to use. Change it # to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a # build specific Cloud project. You can also use your own string diff --git a/vmwareengine/cloud-client/requirements-test.txt b/vmwareengine/cloud-client/requirements-test.txt index aa83d311739..c9e154ba440 100644 --- a/vmwareengine/cloud-client/requirements-test.txt +++ b/vmwareengine/cloud-client/requirements-test.txt @@ -1 +1 @@ -pytest ==8.2.0 \ No newline at end of file +pytest==9.0.3; python_version >= "3.10" diff --git a/webrisk/snippets/noxfile_config.py b/webrisk/snippets/noxfile_config.py index 10bae362df9..649a7bce435 100644 --- a/webrisk/snippets/noxfile_config.py +++ b/webrisk/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.7", "3.8", "3.10", "3.11"], + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/webrisk/snippets/requirements-test.txt b/webrisk/snippets/requirements-test.txt index 060ed652e0b..c9e154ba440 100644 --- a/webrisk/snippets/requirements-test.txt +++ b/webrisk/snippets/requirements-test.txt @@ -1 +1 @@ -pytest==8.2.0 \ No newline at end of file +pytest==9.0.3; python_version >= "3.10" diff --git a/workflows/cloud-client/noxfile_config.py b/workflows/cloud-client/noxfile_config.py index 9667a05fae5..1b9d9e4a580 100644 --- a/workflows/cloud-client/noxfile_config.py +++ b/workflows/cloud-client/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.7", "3.8"], + "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/workflows/cloud-client/requirements-test.txt b/workflows/cloud-client/requirements-test.txt index de9737aeaef..975d5ee58c2 100644 --- a/workflows/cloud-client/requirements-test.txt +++ b/workflows/cloud-client/requirements-test.txt @@ -1,2 +1,2 @@ -pytest==8.3.5 +pytest==9.0.3; python_version >= "3.10" backoff==2.2.1