diff --git a/AUTHORING_GUIDE.md b/AUTHORING_GUIDE.md index 6ec1e5d9fe9..218203d306c 100644 --- a/AUTHORING_GUIDE.md +++ b/AUTHORING_GUIDE.md @@ -861,8 +861,11 @@ Add the new environment variables to the `envs` dictionary. ```py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/appengine/flexible/django_cloudsql/noxfile_config.py b/appengine/flexible/django_cloudsql/noxfile_config.py index 8c838f846b2..ad51150ff32 100644 --- a/appengine/flexible/django_cloudsql/noxfile_config.py +++ b/appengine/flexible/django_cloudsql/noxfile_config.py @@ -21,8 +21,11 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - 'ignored_versions': ["2.7"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # 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/appengine/flexible/scipy/noxfile_config.py b/appengine/flexible/scipy/noxfile_config.py index 3228fb0bf80..d671ed9501b 100644 --- a/appengine/flexible/scipy/noxfile_config.py +++ b/appengine/flexible/scipy/noxfile_config.py @@ -21,8 +21,11 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6", "3.11"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.10 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/appengine/flexible/storage/noxfile_config.py b/appengine/flexible/storage/noxfile_config.py index 1016bb530e8..3e08356fb53 100644 --- a/appengine/flexible/storage/noxfile_config.py +++ b/appengine/flexible/storage/noxfile_config.py @@ -21,8 +21,11 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/appengine/standard/noxfile-template.py b/appengine/standard/noxfile-template.py index 6b5be424c65..d2bc4a981c5 100644 --- a/appengine/standard/noxfile-template.py +++ b/appengine/standard/noxfile-template.py @@ -36,8 +36,11 @@ # their directory and modify it. TEST_CONFIG = { - # You can opt out from the test for specific Python versions. - 'ignored_versions': ["2.7"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # 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 @@ -81,10 +84,10 @@ def get_pytest_env_vars(): # DO NOT EDIT - automatically generated. # All versions used to tested samples. -ALL_VERSIONS = ["2.7", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11"] +ALL_VERSIONS = ["2.7", "3.7", "3.8", "3.9", "3.10", "3.11"] # Any default versions that should be ignored. -IGNORED_VERSIONS = ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"] +IGNORED_VERSIONS = ["3.7", "3.8", "3.9", "3.10", "3.11"] TESTED_VERSIONS = sorted([v for v in ALL_VERSIONS if v not in IGNORED_VERSIONS]) diff --git a/appengine/standard_python3/bundled-services/blobstore/django/noxfile_config.py b/appengine/standard_python3/bundled-services/blobstore/django/noxfile_config.py index 3e419c93df6..0eacfa69fe3 100644 --- a/appengine/standard_python3/bundled-services/blobstore/django/noxfile_config.py +++ b/appengine/standard_python3/bundled-services/blobstore/django/noxfile_config.py @@ -21,8 +21,11 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/appengine/standard_python3/bundled-services/blobstore/flask/noxfile_config.py b/appengine/standard_python3/bundled-services/blobstore/flask/noxfile_config.py index 3e419c93df6..0eacfa69fe3 100644 --- a/appengine/standard_python3/bundled-services/blobstore/flask/noxfile_config.py +++ b/appengine/standard_python3/bundled-services/blobstore/flask/noxfile_config.py @@ -21,8 +21,11 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/appengine/standard_python3/bundled-services/blobstore/wsgi/noxfile_config.py b/appengine/standard_python3/bundled-services/blobstore/wsgi/noxfile_config.py index 3e419c93df6..0eacfa69fe3 100644 --- a/appengine/standard_python3/bundled-services/blobstore/wsgi/noxfile_config.py +++ b/appengine/standard_python3/bundled-services/blobstore/wsgi/noxfile_config.py @@ -21,8 +21,11 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/appengine/standard_python3/bundled-services/deferred/django/noxfile_config.py b/appengine/standard_python3/bundled-services/deferred/django/noxfile_config.py index 3e419c93df6..0eacfa69fe3 100644 --- a/appengine/standard_python3/bundled-services/deferred/django/noxfile_config.py +++ b/appengine/standard_python3/bundled-services/deferred/django/noxfile_config.py @@ -21,8 +21,11 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/appengine/standard_python3/bundled-services/deferred/flask/noxfile_config.py b/appengine/standard_python3/bundled-services/deferred/flask/noxfile_config.py index 3e419c93df6..0eacfa69fe3 100644 --- a/appengine/standard_python3/bundled-services/deferred/flask/noxfile_config.py +++ b/appengine/standard_python3/bundled-services/deferred/flask/noxfile_config.py @@ -21,8 +21,11 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/appengine/standard_python3/bundled-services/deferred/wsgi/noxfile_config.py b/appengine/standard_python3/bundled-services/deferred/wsgi/noxfile_config.py index 3e419c93df6..0eacfa69fe3 100644 --- a/appengine/standard_python3/bundled-services/deferred/wsgi/noxfile_config.py +++ b/appengine/standard_python3/bundled-services/deferred/wsgi/noxfile_config.py @@ -21,8 +21,11 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/appengine/standard_python3/bundled-services/mail/django/noxfile_config.py b/appengine/standard_python3/bundled-services/mail/django/noxfile_config.py index 3e419c93df6..0eacfa69fe3 100644 --- a/appengine/standard_python3/bundled-services/mail/django/noxfile_config.py +++ b/appengine/standard_python3/bundled-services/mail/django/noxfile_config.py @@ -21,8 +21,11 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/appengine/standard_python3/bundled-services/mail/flask/noxfile_config.py b/appengine/standard_python3/bundled-services/mail/flask/noxfile_config.py index 3e419c93df6..0eacfa69fe3 100644 --- a/appengine/standard_python3/bundled-services/mail/flask/noxfile_config.py +++ b/appengine/standard_python3/bundled-services/mail/flask/noxfile_config.py @@ -21,8 +21,11 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/appengine/standard_python3/bundled-services/mail/wsgi/noxfile_config.py b/appengine/standard_python3/bundled-services/mail/wsgi/noxfile_config.py index 3e419c93df6..0eacfa69fe3 100644 --- a/appengine/standard_python3/bundled-services/mail/wsgi/noxfile_config.py +++ b/appengine/standard_python3/bundled-services/mail/wsgi/noxfile_config.py @@ -21,8 +21,11 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/appengine/standard_python3/django/noxfile_config.py b/appengine/standard_python3/django/noxfile_config.py index 52585a75911..970e7b4ccbd 100644 --- a/appengine/standard_python3/django/noxfile_config.py +++ b/appengine/standard_python3/django/noxfile_config.py @@ -21,8 +21,11 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - 'ignored_versions': ["2.7"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # 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/asset/snippets/noxfile_config.py b/asset/snippets/noxfile_config.py index 5c3e8031a97..f7d54f47dd5 100644 --- a/asset/snippets/noxfile_config.py +++ b/asset/snippets/noxfile_config.py @@ -21,8 +21,11 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/auth/service-to-service/noxfile_config.py b/auth/service-to-service/noxfile_config.py index c30876382db..efac571c9e6 100644 --- a/auth/service-to-service/noxfile_config.py +++ b/auth/service-to-service/noxfile_config.py @@ -21,10 +21,12 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py 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"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # We only run the cloud run tests in py38+ session. + # Test min and max supported versions which are python 3.8 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # 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/bigquery/bqml/noxfile_config.py b/bigquery/bqml/noxfile_config.py index 4e2c703470f..13cf5145866 100644 --- a/bigquery/bqml/noxfile_config.py +++ b/bigquery/bqml/noxfile_config.py @@ -21,9 +21,11 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - # Skipping for Python 3.9 due to pyarrow compilation failure. - "ignored_versions": ["2.7", "3.6", "3.9", "3.11"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # google-cloud-bigquery==2.x doesn't support python 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.11"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/bigquery/datalab-migration/noxfile_config.py b/bigquery/datalab-migration/noxfile_config.py index dedcffb884f..cbce964982a 100644 --- a/bigquery/datalab-migration/noxfile_config.py +++ b/bigquery/datalab-migration/noxfile_config.py @@ -21,9 +21,12 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - # Skipping 3.6 and 3.7 to avoid needing a vulnerable version of IPython - "ignored_versions": ["2.7", "3.6", "3.7", "3.11"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Skipping 3.7 to avoid needing a vulnerable version of IPython + # google-cloud-bigquery==2.x doesn't support python 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.7", "3.9", "3.11"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/bigquery/pandas-gbq-migration/noxfile_config.py b/bigquery/pandas-gbq-migration/noxfile_config.py index 4e2c703470f..13cf5145866 100644 --- a/bigquery/pandas-gbq-migration/noxfile_config.py +++ b/bigquery/pandas-gbq-migration/noxfile_config.py @@ -21,9 +21,11 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - # Skipping for Python 3.9 due to pyarrow compilation failure. - "ignored_versions": ["2.7", "3.6", "3.9", "3.11"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # google-cloud-bigquery==2.x doesn't support python 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.11"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/bigquery/remote-function/vision/noxfile_config.py b/bigquery/remote-function/vision/noxfile_config.py index 08d679a142c..365e0f9e92a 100644 --- a/bigquery/remote-function/vision/noxfile_config.py +++ b/bigquery/remote-function/vision/noxfile_config.py @@ -16,8 +16,12 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/blog/introduction_to_data_models_in_cloud_datastore/noxfile_config.py b/blog/introduction_to_data_models_in_cloud_datastore/noxfile_config.py index 5c3e8031a97..f7d54f47dd5 100644 --- a/blog/introduction_to_data_models_in_cloud_datastore/noxfile_config.py +++ b/blog/introduction_to_data_models_in_cloud_datastore/noxfile_config.py @@ -21,8 +21,11 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/cloudbuild/snippets/noxfile_config.py b/cloudbuild/snippets/noxfile_config.py index adf61a1fa73..095af40fbf4 100644 --- a/cloudbuild/snippets/noxfile_config.py +++ b/cloudbuild/snippets/noxfile_config.py @@ -21,9 +21,13 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. # NOTE: We currently only run the test in Python 3.8. - "ignored_versions": ["2.7"], + # Test min and max supported versions which are python 3.8 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.7", "3.9", "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/composer/2022_airflow_summit/noxfile_config.py b/composer/2022_airflow_summit/noxfile_config.py index 9eadce0eccd..ba9b532c968 100644 --- a/composer/2022_airflow_summit/noxfile_config.py +++ b/composer/2022_airflow_summit/noxfile_config.py @@ -29,8 +29,11 @@ _tmpdir = tempfile.TemporaryDirectory() TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - 'ignored_versions': ["2.7", "3.6", "3.7", "3.9", "3.10", "3.11"], # Composer w/ Airflow 2 only supports Python 3.8 + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Composer w/ Airflow 2 only supports Python 3.8 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.7", "3.9", "3.10”, “3.11"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/composer/workflows/noxfile_config.py b/composer/workflows/noxfile_config.py index 9eadce0eccd..ba9b532c968 100644 --- a/composer/workflows/noxfile_config.py +++ b/composer/workflows/noxfile_config.py @@ -29,8 +29,11 @@ _tmpdir = tempfile.TemporaryDirectory() TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - 'ignored_versions': ["2.7", "3.6", "3.7", "3.9", "3.10", "3.11"], # Composer w/ Airflow 2 only supports Python 3.8 + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Composer w/ Airflow 2 only supports Python 3.8 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.7", "3.9", "3.10”, “3.11"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/container/snippets/noxfile_config.py b/container/snippets/noxfile_config.py index 16f326e5c6d..9295d369f17 100644 --- a/container/snippets/noxfile_config.py +++ b/container/snippets/noxfile_config.py @@ -21,8 +21,11 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/data-science-onramp/data-ingestion/noxfile_config.py b/data-science-onramp/data-ingestion/noxfile_config.py index a1d8b70d124..2df893dda6d 100644 --- a/data-science-onramp/data-ingestion/noxfile_config.py +++ b/data-science-onramp/data-ingestion/noxfile_config.py @@ -21,8 +21,11 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6", "3.11"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/data-science-onramp/data-processing/noxfile_config.py b/data-science-onramp/data-processing/noxfile_config.py index a1d8b70d124..2df893dda6d 100644 --- a/data-science-onramp/data-processing/noxfile_config.py +++ b/data-science-onramp/data-processing/noxfile_config.py @@ -21,8 +21,11 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6", "3.11"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/data-science-onramp/vertex-ai/noxfile_config.py b/data-science-onramp/vertex-ai/noxfile_config.py index 1e5e786d006..83b971073f2 100644 --- a/data-science-onramp/vertex-ai/noxfile_config.py +++ b/data-science-onramp/vertex-ai/noxfile_config.py @@ -21,8 +21,11 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/datalabeling/snippets/noxfile_config.py b/datalabeling/snippets/noxfile_config.py index 5c33914cc7a..7bc5323f2e4 100644 --- a/datalabeling/snippets/noxfile_config.py +++ b/datalabeling/snippets/noxfile_config.py @@ -21,8 +21,11 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Declare optional test sessions you want to opt-in. Currently we # have the following optional test sessions: # 'cloud_run' # Test session for Cloud Run application. diff --git a/dataproc/snippets/noxfile_config.py b/dataproc/snippets/noxfile_config.py index 646d77de854..de93a59e9cb 100644 --- a/dataproc/snippets/noxfile_config.py +++ b/dataproc/snippets/noxfile_config.py @@ -21,8 +21,11 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them # "enforce_type_hints": True, diff --git a/documentai/snippets/noxfile_config.py b/documentai/snippets/noxfile_config.py index 4622f761678..08ff4f3d2ca 100644 --- a/documentai/snippets/noxfile_config.py +++ b/documentai/snippets/noxfile_config.py @@ -21,8 +21,11 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/functions/ocr/app/noxfile_config.py b/functions/ocr/app/noxfile_config.py index 69086b19c37..8e2200911c7 100644 --- a/functions/ocr/app/noxfile_config.py +++ b/functions/ocr/app/noxfile_config.py @@ -21,8 +21,12 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - 'ignored_versions': ["2.7"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + # Declare optional test sessions you want to opt-in. Currently we # have the following optional test sessions: diff --git a/functions/v2/ocr/noxfile_config.py b/functions/v2/ocr/noxfile_config.py index 200fc9083fd..6be3be2a128 100644 --- a/functions/v2/ocr/noxfile_config.py +++ b/functions/v2/ocr/noxfile_config.py @@ -21,8 +21,12 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + # Declare optional test sessions you want to opt-in. Currently we # have the following optional test sessions: # 'cloud_run' # Test session for Cloud Run application. diff --git a/healthcare/api-client/v1/consent/noxfile_config.py b/healthcare/api-client/v1/consent/noxfile_config.py index 5e8c57fc7ea..122c9b77bba 100644 --- a/healthcare/api-client/v1/consent/noxfile_config.py +++ b/healthcare/api-client/v1/consent/noxfile_config.py @@ -21,8 +21,12 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - 'ignored_versions': ["2.7"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + # 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/healthcare/api-client/v1/datasets/noxfile_config.py b/healthcare/api-client/v1/datasets/noxfile_config.py index de300c89fb0..82d82871f57 100644 --- a/healthcare/api-client/v1/datasets/noxfile_config.py +++ b/healthcare/api-client/v1/datasets/noxfile_config.py @@ -21,8 +21,12 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - 'ignored_versions': ["2.7"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + # 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/healthcare/api-client/v1/dicom/noxfile_config.py b/healthcare/api-client/v1/dicom/noxfile_config.py index de300c89fb0..82d82871f57 100644 --- a/healthcare/api-client/v1/dicom/noxfile_config.py +++ b/healthcare/api-client/v1/dicom/noxfile_config.py @@ -21,8 +21,12 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - 'ignored_versions': ["2.7"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + # 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/healthcare/api-client/v1/fhir/noxfile_config.py b/healthcare/api-client/v1/fhir/noxfile_config.py index de0350b3d5c..6348e781e8c 100644 --- a/healthcare/api-client/v1/fhir/noxfile_config.py +++ b/healthcare/api-client/v1/fhir/noxfile_config.py @@ -21,8 +21,12 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + # 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/healthcare/api-client/v1/hl7v2/noxfile_config.py b/healthcare/api-client/v1/hl7v2/noxfile_config.py index de300c89fb0..776c46de530 100644 --- a/healthcare/api-client/v1/hl7v2/noxfile_config.py +++ b/healthcare/api-client/v1/hl7v2/noxfile_config.py @@ -21,8 +21,11 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - 'ignored_versions': ["2.7"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # 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/iam/api-client/noxfile_config.py b/iam/api-client/noxfile_config.py index 155d8ba0ee7..19725d8e157 100644 --- a/iam/api-client/noxfile_config.py +++ b/iam/api-client/noxfile_config.py @@ -21,8 +21,11 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - 'ignored_versions': ["2.7"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Declare optional test sessions you want to opt-in. Currently we # have the following optional test sessions: diff --git a/jobs/v3/api_client/noxfile_config.py b/jobs/v3/api_client/noxfile_config.py index de300c89fb0..776c46de530 100644 --- a/jobs/v3/api_client/noxfile_config.py +++ b/jobs/v3/api_client/noxfile_config.py @@ -21,8 +21,11 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - 'ignored_versions': ["2.7"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # 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/kms/attestations/noxfile_config.py b/kms/attestations/noxfile_config.py index 34d0d0b1bb8..60964332857 100644 --- a/kms/attestations/noxfile_config.py +++ b/kms/attestations/noxfile_config.py @@ -21,8 +21,12 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/kms/snippets/noxfile_config.py b/kms/snippets/noxfile_config.py index 34d0d0b1bb8..60964332857 100644 --- a/kms/snippets/noxfile_config.py +++ b/kms/snippets/noxfile_config.py @@ -21,8 +21,12 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/memorystore/redis/noxfile_config.py b/memorystore/redis/noxfile_config.py index c30876382db..efac571c9e6 100644 --- a/memorystore/redis/noxfile_config.py +++ b/memorystore/redis/noxfile_config.py @@ -21,10 +21,12 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py 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"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # We only run the cloud run tests in py38+ session. + # Test min and max supported versions which are python 3.8 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # 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/monitoring/snippets/v3/alerts-client/noxfile_config.py b/monitoring/snippets/v3/alerts-client/noxfile_config.py index 6df11b83bd8..0b1c60f491f 100644 --- a/monitoring/snippets/v3/alerts-client/noxfile_config.py +++ b/monitoring/snippets/v3/alerts-client/noxfile_config.py @@ -21,8 +21,11 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - 'ignored_versions': ['2.7'], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Declare optional test sessions you want to opt-in. Currently we # have the following optional test sessions: diff --git a/monitoring/snippets/v3/cloud-client/noxfile_config.py b/monitoring/snippets/v3/cloud-client/noxfile_config.py index 6df11b83bd8..0b1c60f491f 100644 --- a/monitoring/snippets/v3/cloud-client/noxfile_config.py +++ b/monitoring/snippets/v3/cloud-client/noxfile_config.py @@ -21,8 +21,11 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - 'ignored_versions': ['2.7'], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Declare optional test sessions you want to opt-in. Currently we # have the following optional test sessions: diff --git a/monitoring/snippets/v3/uptime-check-client/noxfile_config.py b/monitoring/snippets/v3/uptime-check-client/noxfile_config.py index 6df11b83bd8..0b1c60f491f 100644 --- a/monitoring/snippets/v3/uptime-check-client/noxfile_config.py +++ b/monitoring/snippets/v3/uptime-check-client/noxfile_config.py @@ -21,8 +21,11 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - 'ignored_versions': ['2.7'], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Declare optional test sessions you want to opt-in. Currently we # have the following optional test sessions: diff --git a/noxfile-template.py b/noxfile-template.py index e98a487e83e..3f557cada69 100644 --- a/noxfile-template.py +++ b/noxfile-template.py @@ -38,8 +38,11 @@ # their directory and modify it. TEST_CONFIG = { - # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, @@ -88,7 +91,7 @@ def get_pytest_env_vars() -> Dict[str, str]: # DO NOT EDIT - automatically generated. # All versions used to tested samples. -ALL_VERSIONS = ["2.7", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11"] +ALL_VERSIONS = ["2.7", "3.7", "3.8", "3.9", "3.10", "3.11"] # Any default versions that should be ignored. IGNORED_VERSIONS = TEST_CONFIG["ignored_versions"] diff --git a/noxfile_config.py b/noxfile_config.py index 545546d21cb..c9b12152124 100644 --- a/noxfile_config.py +++ b/noxfile_config.py @@ -21,8 +21,11 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # 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 545546d21cb..c9b12152124 100644 --- a/optimization/snippets/noxfile_config.py +++ b/optimization/snippets/noxfile_config.py @@ -21,8 +21,11 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/retail/interactive-tutorials/events/noxfile_config.py b/retail/interactive-tutorials/events/noxfile_config.py index cee552bb76b..e011321a42d 100644 --- a/retail/interactive-tutorials/events/noxfile_config.py +++ b/retail/interactive-tutorials/events/noxfile_config.py @@ -18,8 +18,11 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # 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/search/noxfile_config.py b/retail/interactive-tutorials/search/noxfile_config.py index eeab78b4df1..d65e1a60b59 100644 --- a/retail/interactive-tutorials/search/noxfile_config.py +++ b/retail/interactive-tutorials/search/noxfile_config.py @@ -18,8 +18,11 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # 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/deployment-previews/noxfile_config.py b/run/deployment-previews/noxfile_config.py index 26e5bcba650..61962f0dcd0 100644 --- a/run/deployment-previews/noxfile_config.py +++ b/run/deployment-previews/noxfile_config.py @@ -21,9 +21,12 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py 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"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # We only run the cloud run tests in py39+ sessions. + # Test min and max supported versions which are python 3.8 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.7", "3.8", "3.10"], "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/django/noxfile_config.py b/run/django/noxfile_config.py index e928b32a2d2..652c947b728 100644 --- a/run/django/noxfile_config.py +++ b/run/django/noxfile_config.py @@ -21,8 +21,12 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6", "3.7", "3.8"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # We only run the cloud run tests in py39+ sessions. + # Test min and max supported versions which are python 3.8 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.7", "3.8", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature the "enforce_type_hints": True, diff --git a/run/hello-broken/noxfile_config.py b/run/hello-broken/noxfile_config.py index 96e1569c4e8..52303fceca2 100644 --- a/run/hello-broken/noxfile_config.py +++ b/run/hello-broken/noxfile_config.py @@ -21,9 +21,12 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py 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"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # We only run the cloud run tests in py39+ sessions. + # Test min and max supported versions which are python 3.8 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.7", "3.8", "3.10"], # 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/helloworld/noxfile_config.py b/run/helloworld/noxfile_config.py index 96e1569c4e8..52303fceca2 100644 --- a/run/helloworld/noxfile_config.py +++ b/run/helloworld/noxfile_config.py @@ -21,9 +21,12 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py 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"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # We only run the cloud run tests in py39+ sessions. + # Test min and max supported versions which are python 3.8 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.7", "3.8", "3.10"], # 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/idp-sql/noxfile_config.py b/run/idp-sql/noxfile_config.py index 07aae85e9d0..09d42b53b15 100644 --- a/run/idp-sql/noxfile_config.py +++ b/run/idp-sql/noxfile_config.py @@ -21,9 +21,12 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py 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"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # We only run the cloud run tests in py39+ sessions. + # Test min and max supported versions which are python 3.8 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.7", "3.8", "3.10"], "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/image-processing/noxfile_config.py b/run/image-processing/noxfile_config.py index 96e1569c4e8..52303fceca2 100644 --- a/run/image-processing/noxfile_config.py +++ b/run/image-processing/noxfile_config.py @@ -21,9 +21,12 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py 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"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # We only run the cloud run tests in py39+ sessions. + # Test min and max supported versions which are python 3.8 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.7", "3.8", "3.10"], # 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/noxfile_config.py b/run/logging-manual/noxfile_config.py index 96e1569c4e8..52303fceca2 100644 --- a/run/logging-manual/noxfile_config.py +++ b/run/logging-manual/noxfile_config.py @@ -21,9 +21,12 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py 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"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # We only run the cloud run tests in py39+ sessions. + # Test min and max supported versions which are python 3.8 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.7", "3.8", "3.10"], # 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/noxfile_config.py b/run/markdown-preview/noxfile_config.py index 96e1569c4e8..52303fceca2 100644 --- a/run/markdown-preview/noxfile_config.py +++ b/run/markdown-preview/noxfile_config.py @@ -21,9 +21,12 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py 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"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # We only run the cloud run tests in py39+ sessions. + # Test min and max supported versions which are python 3.8 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.7", "3.8", "3.10"], # 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/noxfile_config.py b/run/pubsub/noxfile_config.py index 96e1569c4e8..52303fceca2 100644 --- a/run/pubsub/noxfile_config.py +++ b/run/pubsub/noxfile_config.py @@ -21,9 +21,12 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py 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"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # We only run the cloud run tests in py39+ sessions. + # Test min and max supported versions which are python 3.8 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.7", "3.8", "3.10"], # 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/service-auth/noxfile_config.py b/run/service-auth/noxfile_config.py index 48bcf1c6b23..87e2a29d30f 100644 --- a/run/service-auth/noxfile_config.py +++ b/run/service-auth/noxfile_config.py @@ -21,9 +21,12 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py 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"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # We only run the cloud run tests in py39+ sessions. + # Test min and max supported versions which are python 3.8 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.7", "3.8", "3.10"], # 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/noxfile_config.py b/run/system-package/noxfile_config.py index 96e1569c4e8..52303fceca2 100644 --- a/run/system-package/noxfile_config.py +++ b/run/system-package/noxfile_config.py @@ -21,9 +21,12 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py 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"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # We only run the cloud run tests in py39+ sessions. + # Test min and max supported versions which are python 3.8 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.7", "3.8", "3.10"], # 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/secretmanager/snippets/noxfile_config.py b/secretmanager/snippets/noxfile_config.py index 839dee302fa..88c44502df6 100644 --- a/secretmanager/snippets/noxfile_config.py +++ b/secretmanager/snippets/noxfile_config.py @@ -21,8 +21,11 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/storagetransfer/noxfile_config.py b/storagetransfer/noxfile_config.py index b7efe44a1cb..9f8b21c3bf2 100644 --- a/storagetransfer/noxfile_config.py +++ b/storagetransfer/noxfile_config.py @@ -21,8 +21,11 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/talent/noxfile_config.py b/talent/noxfile_config.py index 6ecfa40e0b8..fdf34900ff2 100644 --- a/talent/noxfile_config.py +++ b/talent/noxfile_config.py @@ -21,8 +21,11 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/noxfile_config.py TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # 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/vision/snippets/crop_hints/noxfile_config.py b/vision/snippets/crop_hints/noxfile_config.py index e0014e50418..35fa61aa708 100644 --- a/vision/snippets/crop_hints/noxfile_config.py +++ b/vision/snippets/crop_hints/noxfile_config.py @@ -21,7 +21,9 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/noxfile_config.py 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.6"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], } diff --git a/vision/snippets/document_text/noxfile_config.py b/vision/snippets/document_text/noxfile_config.py index e0014e50418..35fa61aa708 100644 --- a/vision/snippets/document_text/noxfile_config.py +++ b/vision/snippets/document_text/noxfile_config.py @@ -21,7 +21,9 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/noxfile_config.py 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.6"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], } diff --git a/vision/snippets/face_detection/noxfile_config.py b/vision/snippets/face_detection/noxfile_config.py index e0014e50418..35fa61aa708 100644 --- a/vision/snippets/face_detection/noxfile_config.py +++ b/vision/snippets/face_detection/noxfile_config.py @@ -21,7 +21,9 @@ # https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/noxfile_config.py 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.6"], + # You can opt out specific Python versions from the test. + # To save resources, please consider testing 2 versions at most. + # Test min and max supported versions which are python 3.7 and 3.11 + # Ignoring python 2.7 which is no longer supported. + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], }