Skip to content

Commit 9587aa3

Browse files
authored
chore(several samples) Updating all instances of Pytest up to version 9.0.3 Part II (#14231)
* chore(several samples) Updating all instances of Pytest up to version 9.0.3 Part II to close security alerts from dependabot. Directories that start from C to F. 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. * Undo changes to constraint files. * Undo updates to most samples under composer. * Modified some comments in ignored verions. Restored others that require a dockerfile update to be fully updated. * Fixed noxfile config.
1 parent 9ee2fb7 commit 9587aa3

135 files changed

Lines changed: 135 additions & 149 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.

cdn/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"

cloud-media-livestream/keypublisher/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.12", "3.13"],
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,

cloud-media-livestream/keypublisher/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ pycryptodome==3.21.0
66
pyOpenSSL==25.0.0
77
requests==2.32.4
88
signxml==4.0.4
9-
pytest==8.2.0
9+
pytest==9.0.3; python_version >= "3.10"
1010
pytest-mock==3.14.0
1111
Werkzeug==3.0.6

cloud-sql/mysql/client-side-encryption/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.6", "3.10", "3.11"],
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,
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"
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"

cloud-sql/postgres/client-side-encryption/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.6", "3.10", "3.11"],
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,
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"
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"

cloud-sql/sql-server/client-side-encryption/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.6", "3.10", "3.11"],
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,

0 commit comments

Comments
 (0)