Skip to content

Commit 5974915

Browse files
authored
chore(several samples) Updating all instances of Pytest up to version 9.0.3 Part I (#14230)
* Updating all instances of Pytest up to version 9.0.3 to close security alerts from dependabot. Extra: modified versions on which pipelines are wllowed to rune, since python 9.0.3 only support Python 3.10 onwards, so pipelines will only run 3.10 and 3.14 versions, which are the older and latest versions that are still maintained. Some surrounding packages had it's versions updated to avoid building issues with pip. * Removed changes to django, this package will be addressed in a different PR. * Update appengine/flexible/tasks/noxfile_config.py * Apply suggestion from @amcolin * Apply suggestion from @amcolin * Removed merge conflict. * Remove python 3.7 from ignored list. There are no pipelines for python 3.7. * Fixed versions for appengine sample.
1 parent 446db02 commit 5974915

150 files changed

Lines changed: 152 additions & 220 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

alloydb/notebooks/noxfile_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
TEST_CONFIG_OVERRIDE = {
1616
# You can opt out from the test for specific Python versions.
17-
"ignored_versions": ["2.7", "3.7", "3.8", "3.9", "3.11", "3.12", "3.13"],
17+
"ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"],
1818
# Old samples are opted out of enforcing Python type hints
1919
# All new samples should feature them
2020
"enforce_type_hints": True,
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
google-cloud-alloydb-connector[asyncpg]==1.5.0
1+
google-cloud-alloydb-connector[asyncpg]==1.12.1
22
sqlalchemy==2.0.40
3-
pytest==8.3.3
3+
pytest==9.0.3; python_version >= "3.10"
44
ipykernel==6.29.5
5-
pytest-asyncio==0.24.0
5+
pytest-asyncio==1.3.0
66
nbconvert==7.16.6

aml-ai/requirements-test.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pytest==8.2.0
1+
pytest==9.0.3; python_version >= "3.10"

appengine/flexible/analytics/noxfile_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
TEST_CONFIG_OVERRIDE = {
2424
# You can opt out from the test for specific Python versions.
25-
"ignored_versions": ["2.7", "3.7"],
25+
"ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"],
2626
# Old samples are opted out of enforcing Python type hints
2727
# All new samples should feature them
2828
"enforce_type_hints": False,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
pytest==8.2.0
1+
pytest==9.0.3; python_version >= "3.10"
22
responses==0.23.1

appengine/flexible/datastore/noxfile_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
TEST_CONFIG_OVERRIDE = {
2424
# You can opt out from the test for specific Python versions.
25-
"ignored_versions": ["2.7", "3.7"],
25+
"ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"],
2626
# Old samples are opted out of enforcing Python type hints
2727
# All new samples should feature them
2828
"enforce_type_hints": False,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pytest==8.2.0
1+
pytest==9.0.3; python_version >= "3.10"

appengine/flexible/django_cloudsql/noxfile_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
TEST_CONFIG_OVERRIDE = {
2424
# You can opt out from the test for specific Python versions.
25-
"ignored_versions": ["2.7", "3.7", "3.8", "3.9", "3.10", "3.11"],
25+
"ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"],
2626
# An envvar key for determining the project id to use. Change it
2727
# to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a
2828
# build specific Cloud project. You can also use your own string
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
pytest==9.0.3
1+
pytest==9.0.3; python_version >= "3.10"
22
pytest-django==4.9.0

appengine/flexible/hello_world/noxfile_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
TEST_CONFIG_OVERRIDE = {
2424
# You can opt out from the test for specific Python versions.
25-
"ignored_versions": ["2.7", "3.7"],
25+
"ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"],
2626
# Old samples are opted out of enforcing Python type hints
2727
# All new samples should feature them
2828
"enforce_type_hints": True,

0 commit comments

Comments
 (0)