From b59ce0def2626e3f90ddbeaf1b898c5eb7fb0adf Mon Sep 17 00:00:00 2001 From: David del Real Sifuentes Date: Wed, 20 May 2026 17:44:01 +0000 Subject: [PATCH 1/4] chore: update requests dependency across all samples - Update requests to version 2.34.2 - Pin requests to python 3.10 and newer --- aml-ai/requirements.txt | 2 +- appengine/flexible/analytics/requirements.txt | 2 +- appengine/flexible/metadata/requirements.txt | 2 +- .../multiple_services/gateway-service/requirements.txt | 2 +- .../multiple_services/static-service/requirements.txt | 2 +- appengine/flexible/websockets/requirements.txt | 2 +- appengine/standard/analytics/requirements.txt | 4 ++-- .../standard/firebase/firenotes/backend/requirements.txt | 4 ++-- appengine/standard/migration/incoming/requirements.txt | 2 +- .../standard/migration/urlfetch/async/requirements.txt | 8 ++++---- .../standard/migration/urlfetch/requests/requirements.txt | 4 ++-- appengine/standard/urlfetch/requests/requirements.txt | 4 ++-- .../building-an-app/building-an-app-3/requirements.txt | 2 +- .../building-an-app/building-an-app-4/requirements.txt | 2 +- .../blobstore/django/requirements-test.txt | 2 +- .../blobstore/flask/requirements-test.txt | 2 +- .../bundled-services/blobstore/wsgi/requirements-test.txt | 2 +- .../deferred/django/requirements-test.txt | 2 +- .../bundled-services/deferred/flask/requirements-test.txt | 2 +- .../bundled-services/deferred/wsgi/requirements-test.txt | 2 +- .../bundled-services/mail/django/requirements-test.txt | 2 +- .../bundled-services/mail/flask/requirements-test.txt | 2 +- .../bundled-services/mail/wsgi/requirements-test.txt | 2 +- .../standard_python3/migration/urlfetch/requirements.txt | 2 +- auth/cloud-client-temp/requirements.txt | 2 +- auth/custom-credentials/aws/requirements.txt | 2 +- auth/custom-credentials/okta/requirements.txt | 2 +- auth/end-user/web/requirements.txt | 2 +- auth/service-to-service/requirements.txt | 2 +- bigquery/continuous-queries/requirements-test.txt | 2 +- bigquery/continuous-queries/requirements.txt | 2 +- cloud-media-livestream/keypublisher/requirements.txt | 2 +- cloud_tasks/http_queues/requirements.txt | 2 +- composer/cicd_sample/utils/requirements-test.txt | 2 +- composer/rest/composer2/requirements-test.txt | 1 - composer/rest/composer2/requirements.txt | 2 +- composer/rest/requirements.txt | 2 +- compute/auth/requirements.txt | 2 +- compute/encryption/requirements.txt | 2 +- compute/managed-instances/demo/requirements.txt | 2 +- compute/metadata/requirements.txt | 2 +- compute/oslogin/requirements.txt | 2 +- .../pipeline_with_dependencies/requirements.txt | 2 +- endpoints/getting-started/requirements.txt | 2 +- functions/concepts-requests/requirements-test.txt | 2 +- functions/concepts-requests/requirements.txt | 2 +- functions/security/requirements.txt | 2 +- functions/tips-connection-pooling/requirements-test.txt | 2 +- functions/tips-connection-pooling/requirements.txt | 2 +- healthcare/api-client/v1/dicom/requirements.txt | 2 +- healthcare/api-client/v1beta1/fhir/requirements.txt | 2 +- iap/requirements.txt | 2 +- kms/attestations/requirements.txt | 2 +- kubernetes_engine/django_tutorial/requirements.txt | 1 + monitoring/opencensus/requirements.txt | 2 +- monitoring/prometheus/requirements.txt | 2 +- run/django/requirements-test.txt | 2 +- run/hello-broken/requirements-test.txt | 2 +- run/markdown-preview/editor/requirements.txt | 2 +- run/service-auth/requirements.txt | 2 +- run/system-package/requirements-test.txt | 2 +- video/stitcher/requirements-test.txt | 2 +- 62 files changed, 68 insertions(+), 68 deletions(-) diff --git a/aml-ai/requirements.txt b/aml-ai/requirements.txt index 1c6bdbfe580..5323b82818c 100644 --- a/aml-ai/requirements.txt +++ b/aml-ai/requirements.txt @@ -1,4 +1,4 @@ google-api-python-client==2.131.0 google-auth-httplib2==0.2.0 google-auth==2.38.0 -requests==2.32.4 +requests==2.34.2; python_version >= '3.10' diff --git a/appengine/flexible/analytics/requirements.txt b/appengine/flexible/analytics/requirements.txt index 4d6ab43b4bc..2abef114713 100644 --- a/appengine/flexible/analytics/requirements.txt +++ b/appengine/flexible/analytics/requirements.txt @@ -1,4 +1,4 @@ Flask==3.1.3; python_version >= '3.9' Werkzeug==3.1.8; python_version >= '3.9' gunicorn==23.0.0 -requests[security]==2.31.0 +requests[security]==2.34.2; python_version >= '3.10' diff --git a/appengine/flexible/metadata/requirements.txt b/appengine/flexible/metadata/requirements.txt index 7af49fd8541..cfa65353ec3 100644 --- a/appengine/flexible/metadata/requirements.txt +++ b/appengine/flexible/metadata/requirements.txt @@ -1,3 +1,3 @@ Flask==3.1.3; python_version >= '3.9' gunicorn==23.0.0 -requests[security]==2.31.0 +requests[security]==2.34.2; python_version >= '3.10' diff --git a/appengine/flexible/multiple_services/gateway-service/requirements.txt b/appengine/flexible/multiple_services/gateway-service/requirements.txt index 965030d74c1..fa909c4e380 100644 --- a/appengine/flexible/multiple_services/gateway-service/requirements.txt +++ b/appengine/flexible/multiple_services/gateway-service/requirements.txt @@ -1,3 +1,3 @@ Flask==3.1.3; python_version >= '3.9' gunicorn==23.0.0 -requests==2.31.0 +requests==2.34.2; python_version >= '3.10' diff --git a/appengine/flexible/multiple_services/static-service/requirements.txt b/appengine/flexible/multiple_services/static-service/requirements.txt index 965030d74c1..fa909c4e380 100644 --- a/appengine/flexible/multiple_services/static-service/requirements.txt +++ b/appengine/flexible/multiple_services/static-service/requirements.txt @@ -1,3 +1,3 @@ Flask==3.1.3; python_version >= '3.9' gunicorn==23.0.0 -requests==2.31.0 +requests==2.34.2; python_version >= '3.10' diff --git a/appengine/flexible/websockets/requirements.txt b/appengine/flexible/websockets/requirements.txt index 403f3a8d9cb..eb3d426fe96 100644 --- a/appengine/flexible/websockets/requirements.txt +++ b/appengine/flexible/websockets/requirements.txt @@ -1,6 +1,6 @@ Flask==3.1.3; python_version >= '3.9' # it seems like Flask-sockets doesn't play well with 2.0+ Flask-Sockets==0.2.1 gunicorn==23.0.0 -requests==2.31.0 +requests==2.34.2; python_version >= '3.10' markupsafe==2.0.1 Werkzeug==3.1.8; python_version >= '3.9' diff --git a/appengine/standard/analytics/requirements.txt b/appengine/standard/analytics/requirements.txt index 2e5ea9da56c..57db758ea84 100644 --- a/appengine/standard/analytics/requirements.txt +++ b/appengine/standard/analytics/requirements.txt @@ -1,4 +1,4 @@ Flask==3.1.3; python_version >= '3.9' -requests==2.27.1 -requests-toolbelt==0.10.1 Werkzeug==3.1.8; python_version >= '3.9' +requests==2.34.2; python_version >= '3.10' +requests-toolbelt==1.0.0 diff --git a/appengine/standard/firebase/firenotes/backend/requirements.txt b/appengine/standard/firebase/firenotes/backend/requirements.txt index cd3d9177908..1d7d0658ec0 100644 --- a/appengine/standard/firebase/firenotes/backend/requirements.txt +++ b/appengine/standard/firebase/firenotes/backend/requirements.txt @@ -3,6 +3,6 @@ pyjwt==1.7.1; python_version < '3.0' flask-cors==6.0.0 google-auth==2.17.3; python_version < '3.0' google-auth==2.17.3; python_version > '3.0' -requests==2.27.1 -requests-toolbelt==0.10.1 Werkzeug==3.1.8; python_version >= '3.9' +requests==2.34.2; python_version >= '3.10' +requests-toolbelt==1.0.0 diff --git a/appengine/standard/migration/incoming/requirements.txt b/appengine/standard/migration/incoming/requirements.txt index 1b6d8a6ee2f..b415937ef8a 100644 --- a/appengine/standard/migration/incoming/requirements.txt +++ b/appengine/standard/migration/incoming/requirements.txt @@ -1,2 +1,2 @@ google-auth==2.17.3 -requests==2.27.1 +requests==2.34.2; python_version >= '3.10' diff --git a/appengine/standard/migration/urlfetch/async/requirements.txt b/appengine/standard/migration/urlfetch/async/requirements.txt index e6e0632825a..8d1fca16107 100644 --- a/appengine/standard/migration/urlfetch/async/requirements.txt +++ b/appengine/standard/migration/urlfetch/async/requirements.txt @@ -1,5 +1,5 @@ Flask==3.1.3; python_version >= '3.9' -requests==2.27.1 -requests-futures==1.0.0 -requests-toolbelt==0.10.1 -Werkzeug==3.1.8; python_version >= '3.9' \ No newline at end of file +Werkzeug==3.1.8; python_version >= '3.9' +requests==2.34.2; python_version >= '3.10' +requests-futures==1.0.2 +requests-toolbelt==1.0.0 diff --git a/appengine/standard/migration/urlfetch/requests/requirements.txt b/appengine/standard/migration/urlfetch/requests/requirements.txt index 2e5ea9da56c..57db758ea84 100644 --- a/appengine/standard/migration/urlfetch/requests/requirements.txt +++ b/appengine/standard/migration/urlfetch/requests/requirements.txt @@ -1,4 +1,4 @@ Flask==3.1.3; python_version >= '3.9' -requests==2.27.1 -requests-toolbelt==0.10.1 Werkzeug==3.1.8; python_version >= '3.9' +requests==2.34.2; python_version >= '3.10' +requests-toolbelt==1.0.0 diff --git a/appengine/standard/urlfetch/requests/requirements.txt b/appengine/standard/urlfetch/requests/requirements.txt index 2e5ea9da56c..57db758ea84 100644 --- a/appengine/standard/urlfetch/requests/requirements.txt +++ b/appengine/standard/urlfetch/requests/requirements.txt @@ -1,4 +1,4 @@ Flask==3.1.3; python_version >= '3.9' -requests==2.27.1 -requests-toolbelt==0.10.1 Werkzeug==3.1.8; python_version >= '3.9' +requests==2.34.2; python_version >= '3.10' +requests-toolbelt==1.0.0 diff --git a/appengine/standard_python3/building-an-app/building-an-app-3/requirements.txt b/appengine/standard_python3/building-an-app/building-an-app-3/requirements.txt index b1c8e3e6897..180ee8d7bd8 100644 --- a/appengine/standard_python3/building-an-app/building-an-app-3/requirements.txt +++ b/appengine/standard_python3/building-an-app/building-an-app-3/requirements.txt @@ -1,4 +1,4 @@ Flask==3.1.3; python_version >= '3.9' google-cloud-datastore==2.15.1 google-auth==2.17.3 -requests==2.28.2 +requests==2.34.2; python_version >= '3.10' diff --git a/appengine/standard_python3/building-an-app/building-an-app-4/requirements.txt b/appengine/standard_python3/building-an-app/building-an-app-4/requirements.txt index b1c8e3e6897..180ee8d7bd8 100644 --- a/appengine/standard_python3/building-an-app/building-an-app-4/requirements.txt +++ b/appengine/standard_python3/building-an-app/building-an-app-4/requirements.txt @@ -1,4 +1,4 @@ Flask==3.1.3; python_version >= '3.9' google-cloud-datastore==2.15.1 google-auth==2.17.3 -requests==2.28.2 +requests==2.34.2; python_version >= '3.10' diff --git a/appengine/standard_python3/bundled-services/blobstore/django/requirements-test.txt b/appengine/standard_python3/bundled-services/blobstore/django/requirements-test.txt index b8e94617358..6304310755c 100644 --- a/appengine/standard_python3/bundled-services/blobstore/django/requirements-test.txt +++ b/appengine/standard_python3/bundled-services/blobstore/django/requirements-test.txt @@ -1,3 +1,3 @@ backoff==2.2.1 pytest==9.0.3; python_version >= "3.10" -requests==2.28.2 \ No newline at end of file +requests==2.34.2; python_version >= '3.10' diff --git a/appengine/standard_python3/bundled-services/blobstore/flask/requirements-test.txt b/appengine/standard_python3/bundled-services/blobstore/flask/requirements-test.txt index b8e94617358..6304310755c 100644 --- a/appengine/standard_python3/bundled-services/blobstore/flask/requirements-test.txt +++ b/appengine/standard_python3/bundled-services/blobstore/flask/requirements-test.txt @@ -1,3 +1,3 @@ backoff==2.2.1 pytest==9.0.3; python_version >= "3.10" -requests==2.28.2 \ No newline at end of file +requests==2.34.2; python_version >= '3.10' diff --git a/appengine/standard_python3/bundled-services/blobstore/wsgi/requirements-test.txt b/appengine/standard_python3/bundled-services/blobstore/wsgi/requirements-test.txt index b8e94617358..6304310755c 100644 --- a/appengine/standard_python3/bundled-services/blobstore/wsgi/requirements-test.txt +++ b/appengine/standard_python3/bundled-services/blobstore/wsgi/requirements-test.txt @@ -1,3 +1,3 @@ backoff==2.2.1 pytest==9.0.3; python_version >= "3.10" -requests==2.28.2 \ No newline at end of file +requests==2.34.2; python_version >= '3.10' diff --git a/appengine/standard_python3/bundled-services/deferred/django/requirements-test.txt b/appengine/standard_python3/bundled-services/deferred/django/requirements-test.txt index b8e94617358..6304310755c 100644 --- a/appengine/standard_python3/bundled-services/deferred/django/requirements-test.txt +++ b/appengine/standard_python3/bundled-services/deferred/django/requirements-test.txt @@ -1,3 +1,3 @@ backoff==2.2.1 pytest==9.0.3; python_version >= "3.10" -requests==2.28.2 \ No newline at end of file +requests==2.34.2; python_version >= '3.10' diff --git a/appengine/standard_python3/bundled-services/deferred/flask/requirements-test.txt b/appengine/standard_python3/bundled-services/deferred/flask/requirements-test.txt index b8e94617358..6304310755c 100644 --- a/appengine/standard_python3/bundled-services/deferred/flask/requirements-test.txt +++ b/appengine/standard_python3/bundled-services/deferred/flask/requirements-test.txt @@ -1,3 +1,3 @@ backoff==2.2.1 pytest==9.0.3; python_version >= "3.10" -requests==2.28.2 \ No newline at end of file +requests==2.34.2; python_version >= '3.10' diff --git a/appengine/standard_python3/bundled-services/deferred/wsgi/requirements-test.txt b/appengine/standard_python3/bundled-services/deferred/wsgi/requirements-test.txt index b8e94617358..6304310755c 100644 --- a/appengine/standard_python3/bundled-services/deferred/wsgi/requirements-test.txt +++ b/appengine/standard_python3/bundled-services/deferred/wsgi/requirements-test.txt @@ -1,3 +1,3 @@ backoff==2.2.1 pytest==9.0.3; python_version >= "3.10" -requests==2.28.2 \ No newline at end of file +requests==2.34.2; python_version >= '3.10' diff --git a/appengine/standard_python3/bundled-services/mail/django/requirements-test.txt b/appengine/standard_python3/bundled-services/mail/django/requirements-test.txt index b8e94617358..6304310755c 100644 --- a/appengine/standard_python3/bundled-services/mail/django/requirements-test.txt +++ b/appengine/standard_python3/bundled-services/mail/django/requirements-test.txt @@ -1,3 +1,3 @@ backoff==2.2.1 pytest==9.0.3; python_version >= "3.10" -requests==2.28.2 \ No newline at end of file +requests==2.34.2; python_version >= '3.10' diff --git a/appengine/standard_python3/bundled-services/mail/flask/requirements-test.txt b/appengine/standard_python3/bundled-services/mail/flask/requirements-test.txt index b8e94617358..6304310755c 100644 --- a/appengine/standard_python3/bundled-services/mail/flask/requirements-test.txt +++ b/appengine/standard_python3/bundled-services/mail/flask/requirements-test.txt @@ -1,3 +1,3 @@ backoff==2.2.1 pytest==9.0.3; python_version >= "3.10" -requests==2.28.2 \ No newline at end of file +requests==2.34.2; python_version >= '3.10' diff --git a/appengine/standard_python3/bundled-services/mail/wsgi/requirements-test.txt b/appengine/standard_python3/bundled-services/mail/wsgi/requirements-test.txt index b8e94617358..6304310755c 100644 --- a/appengine/standard_python3/bundled-services/mail/wsgi/requirements-test.txt +++ b/appengine/standard_python3/bundled-services/mail/wsgi/requirements-test.txt @@ -1,3 +1,3 @@ backoff==2.2.1 pytest==9.0.3; python_version >= "3.10" -requests==2.28.2 \ No newline at end of file +requests==2.34.2; python_version >= '3.10' diff --git a/appengine/standard_python3/migration/urlfetch/requirements.txt b/appengine/standard_python3/migration/urlfetch/requirements.txt index 05d9bfda9b6..6b92818d794 100644 --- a/appengine/standard_python3/migration/urlfetch/requirements.txt +++ b/appengine/standard_python3/migration/urlfetch/requirements.txt @@ -1,3 +1,3 @@ -requests==2.28.2 Flask==3.1.3; python_version >= '3.9' +requests==2.34.2; python_version >= '3.10' google-auth==2.17.3 diff --git a/auth/cloud-client-temp/requirements.txt b/auth/cloud-client-temp/requirements.txt index c0bda55ed4a..fef98a05d07 100644 --- a/auth/cloud-client-temp/requirements.txt +++ b/auth/cloud-client-temp/requirements.txt @@ -3,5 +3,5 @@ google-cloud-storage==3.8.0 google-auth==2.47.0 pytest==9.0.3; python_version >= "3.10" boto3>=1.26.0 -requests==2.32.5 +requests==2.34.2; python_version >= '3.10' python-dotenv==1.2.1 diff --git a/auth/custom-credentials/aws/requirements.txt b/auth/custom-credentials/aws/requirements.txt index 2c302888ed7..755bdfddec0 100644 --- a/auth/custom-credentials/aws/requirements.txt +++ b/auth/custom-credentials/aws/requirements.txt @@ -2,4 +2,4 @@ boto3==1.40.53 google-auth==2.43.0 google-cloud-storage==2.19.0 python-dotenv==1.1.1 -requests==2.32.3 +requests==2.34.2; python_version >= '3.10' diff --git a/auth/custom-credentials/okta/requirements.txt b/auth/custom-credentials/okta/requirements.txt index 893676b178f..95ba3242a1b 100644 --- a/auth/custom-credentials/okta/requirements.txt +++ b/auth/custom-credentials/okta/requirements.txt @@ -1,4 +1,4 @@ -requests==2.32.3 +requests==2.34.2; python_version >= '3.10' google-cloud-storage==2.19.0 google-auth==2.43.0 python-dotenv==1.2.2 diff --git a/auth/end-user/web/requirements.txt b/auth/end-user/web/requirements.txt index 25ac6ed9f2e..2f317ce73b5 100644 --- a/auth/end-user/web/requirements.txt +++ b/auth/end-user/web/requirements.txt @@ -3,4 +3,4 @@ google-auth-oauthlib==1.2.1 google-auth-httplib2==0.2.0 google-api-python-client==2.131.0 Flask==3.1.3; python_version >= '3.9' -requests==2.31.0 +requests==2.34.2; python_version >= '3.10' diff --git a/auth/service-to-service/requirements.txt b/auth/service-to-service/requirements.txt index ece414abb35..0bf168d9f10 100644 --- a/auth/service-to-service/requirements.txt +++ b/auth/service-to-service/requirements.txt @@ -1,2 +1,2 @@ google-auth==2.19.1 -requests==2.32.4 +requests==2.34.2; python_version >= '3.10' diff --git a/bigquery/continuous-queries/requirements-test.txt b/bigquery/continuous-queries/requirements-test.txt index a4f09c46e50..5c7507d293a 100644 --- a/bigquery/continuous-queries/requirements-test.txt +++ b/bigquery/continuous-queries/requirements-test.txt @@ -1,3 +1,3 @@ pytest==9.0.3; python_version >= "3.10" google-auth==2.38.0 -requests==2.32.4 +requests==2.34.2; python_version >= '3.10' diff --git a/bigquery/continuous-queries/requirements.txt b/bigquery/continuous-queries/requirements.txt index 244b3dea27d..1ef1c4d1c6a 100644 --- a/bigquery/continuous-queries/requirements.txt +++ b/bigquery/continuous-queries/requirements.txt @@ -1,4 +1,4 @@ functions-framework==3.9.2 google-cloud-bigquery==3.30.0 google-auth==2.38.0 -requests==2.32.4 +requests==2.34.2; python_version >= '3.10' diff --git a/cloud-media-livestream/keypublisher/requirements.txt b/cloud-media-livestream/keypublisher/requirements.txt index 88b7dbe05ce..4e910840405 100644 --- a/cloud-media-livestream/keypublisher/requirements.txt +++ b/cloud-media-livestream/keypublisher/requirements.txt @@ -4,7 +4,7 @@ google-cloud-secret-manager==2.21.1 lxml==5.2.1 pycryptodome==3.21.0 pyOpenSSL==25.0.0 -requests==2.32.4 +requests==2.34.2; python_version >= '3.10' signxml==4.0.4 pytest==9.0.3; python_version >= "3.10" pytest-mock==3.14.0 diff --git a/cloud_tasks/http_queues/requirements.txt b/cloud_tasks/http_queues/requirements.txt index de6af1800a9..33d47d149cf 100644 --- a/cloud_tasks/http_queues/requirements.txt +++ b/cloud_tasks/http_queues/requirements.txt @@ -1,2 +1,2 @@ google-cloud-tasks==2.18.0 -requests==2.32.4 \ No newline at end of file +requests==2.34.2; python_version >= '3.10' \ No newline at end of file diff --git a/composer/cicd_sample/utils/requirements-test.txt b/composer/cicd_sample/utils/requirements-test.txt index 767b3914b9e..a4a630eb4a0 100644 --- a/composer/cicd_sample/utils/requirements-test.txt +++ b/composer/cicd_sample/utils/requirements-test.txt @@ -1,4 +1,4 @@ pytest==9.0.3; python_version >= "3.10" -requests==2.31.0 +requests==2.34.2; python_version >= '3.10' google-api-core==2.17.1 google-resumable-media==2.7.2 diff --git a/composer/rest/composer2/requirements-test.txt b/composer/rest/composer2/requirements-test.txt index 8bf1ef72ba5..c9e154ba440 100644 --- a/composer/rest/composer2/requirements-test.txt +++ b/composer/rest/composer2/requirements-test.txt @@ -1,2 +1 @@ pytest==9.0.3; python_version >= "3.10" -requests==2.32.2 diff --git a/composer/rest/composer2/requirements.txt b/composer/rest/composer2/requirements.txt index 9e210499090..c8864de5b34 100644 --- a/composer/rest/composer2/requirements.txt +++ b/composer/rest/composer2/requirements.txt @@ -1,2 +1,2 @@ google-auth==2.38.0 -requests==2.32.2 +requests==2.34.2; python_version >= '3.10' diff --git a/composer/rest/requirements.txt b/composer/rest/requirements.txt index d008de40fc4..6833a6e1bbc 100644 --- a/composer/rest/requirements.txt +++ b/composer/rest/requirements.txt @@ -1,3 +1,3 @@ google-auth==2.38.0 -requests==2.32.4 +requests==2.34.2; python_version >= '3.10' six==1.16.0 diff --git a/compute/auth/requirements.txt b/compute/auth/requirements.txt index 47ad86a4a81..0f644bbee2f 100644 --- a/compute/auth/requirements.txt +++ b/compute/auth/requirements.txt @@ -1,4 +1,4 @@ -requests==2.32.4 +requests==2.34.2; python_version >= '3.10' google-auth==2.38.0 google-auth-httplib2==0.2.0 google-cloud-storage==2.9.0 diff --git a/compute/encryption/requirements.txt b/compute/encryption/requirements.txt index ca64bbbc0f4..012874e29fa 100644 --- a/compute/encryption/requirements.txt +++ b/compute/encryption/requirements.txt @@ -1,5 +1,5 @@ cryptography==45.0.1 -requests==2.32.4 +requests==2.34.2; python_version >= '3.10' google-api-python-client==2.131.0 google-auth==2.38.0 google-auth-httplib2==0.2.0 diff --git a/compute/managed-instances/demo/requirements.txt b/compute/managed-instances/demo/requirements.txt index 83e0d0ce584..80e0432d9a7 100644 --- a/compute/managed-instances/demo/requirements.txt +++ b/compute/managed-instances/demo/requirements.txt @@ -1,3 +1,3 @@ Flask==3.1.3; python_version >= '3.9' -requests==2.31.0 Werkzeug==3.1.8; python_version >= '3.9' +requests==2.34.2; python_version >= '3.10' diff --git a/compute/metadata/requirements.txt b/compute/metadata/requirements.txt index d03212dcf9c..04b4818843a 100644 --- a/compute/metadata/requirements.txt +++ b/compute/metadata/requirements.txt @@ -1,2 +1,2 @@ -requests==2.32.4 +requests==2.34.2; python_version >= '3.10' google-auth==2.38.0 \ No newline at end of file diff --git a/compute/oslogin/requirements.txt b/compute/oslogin/requirements.txt index f77e111b4e9..fbc60a92450 100644 --- a/compute/oslogin/requirements.txt +++ b/compute/oslogin/requirements.txt @@ -3,4 +3,4 @@ google-auth==2.38.0 google-auth-httplib2==0.2.0 google-cloud-compute==1.11.0 google-cloud-os-login==2.15.1 -requests==2.32.4 \ No newline at end of file +requests==2.34.2; python_version >= '3.10' \ No newline at end of file diff --git a/dataflow/flex-templates/pipeline_with_dependencies/requirements.txt b/dataflow/flex-templates/pipeline_with_dependencies/requirements.txt index cc9fda76736..f79533051df 100644 --- a/dataflow/flex-templates/pipeline_with_dependencies/requirements.txt +++ b/dataflow/flex-templates/pipeline_with_dependencies/requirements.txt @@ -275,7 +275,7 @@ referencing==0.33.0 # jsonschema-specifications regex==2023.12.25 # via apache-beam -requests==2.31.0 +requests==2.34.2; python_version >= '3.10' # via # apache-beam # google-api-core diff --git a/endpoints/getting-started/requirements.txt b/endpoints/getting-started/requirements.txt index fe93519c14c..dcc5cdd487b 100644 --- a/endpoints/getting-started/requirements.txt +++ b/endpoints/getting-started/requirements.txt @@ -3,7 +3,7 @@ flask-cors==6.0.1 gunicorn==23.0.0 six==1.16.0 pyyaml==6.0.2 -requests==2.31.0 +requests==2.34.2; python_version >= '3.10' google-auth==2.38.0 google-auth-oauthlib==1.2.1 Werkzeug==3.1.8; python_version >= '3.9' diff --git a/functions/concepts-requests/requirements-test.txt b/functions/concepts-requests/requirements-test.txt index 80befdef044..cf909bc887e 100644 --- a/functions/concepts-requests/requirements-test.txt +++ b/functions/concepts-requests/requirements-test.txt @@ -1,5 +1,5 @@ pytest==9.0.3; python_version >= "3.10" Flask==3.1.3; python_version >= '3.9' -requests==2.31.0 +requests==2.34.2; python_version >= '3.10' responses==0.17.0; python_version < '3.7' responses==0.23.1; python_version > '3.6' diff --git a/functions/concepts-requests/requirements.txt b/functions/concepts-requests/requirements.txt index e8dc91f5eb5..a06420244a9 100644 --- a/functions/concepts-requests/requirements.txt +++ b/functions/concepts-requests/requirements.txt @@ -1,2 +1,2 @@ functions-framework==3.9.2 -requests==2.31.0 +requests==2.34.2; python_version >= '3.10' diff --git a/functions/security/requirements.txt b/functions/security/requirements.txt index 2c24336eb31..5196643fbdb 100644 --- a/functions/security/requirements.txt +++ b/functions/security/requirements.txt @@ -1 +1 @@ -requests==2.31.0 +requests==2.34.2; python_version >= '3.10' diff --git a/functions/tips-connection-pooling/requirements-test.txt b/functions/tips-connection-pooling/requirements-test.txt index 80befdef044..cf909bc887e 100644 --- a/functions/tips-connection-pooling/requirements-test.txt +++ b/functions/tips-connection-pooling/requirements-test.txt @@ -1,5 +1,5 @@ pytest==9.0.3; python_version >= "3.10" Flask==3.1.3; python_version >= '3.9' -requests==2.31.0 +requests==2.34.2; python_version >= '3.10' responses==0.17.0; python_version < '3.7' responses==0.23.1; python_version > '3.6' diff --git a/functions/tips-connection-pooling/requirements.txt b/functions/tips-connection-pooling/requirements.txt index a267b387ca6..2105bf05e46 100644 --- a/functions/tips-connection-pooling/requirements.txt +++ b/functions/tips-connection-pooling/requirements.txt @@ -1,2 +1,2 @@ -requests==2.31.0 +requests==2.34.2; python_version >= '3.10' functions-framework==3.9.2 diff --git a/healthcare/api-client/v1/dicom/requirements.txt b/healthcare/api-client/v1/dicom/requirements.txt index 0e536138aa8..5b162858c33 100644 --- a/healthcare/api-client/v1/dicom/requirements.txt +++ b/healthcare/api-client/v1/dicom/requirements.txt @@ -2,4 +2,4 @@ google-api-python-client==2.131.0 google-auth-httplib2==0.2.0 google-auth==2.38.0 google-cloud-pubsub==2.28.0 -requests==2.31.0 +requests==2.34.2; python_version >= '3.10' diff --git a/healthcare/api-client/v1beta1/fhir/requirements.txt b/healthcare/api-client/v1beta1/fhir/requirements.txt index 70b7172329c..110937d3916 100644 --- a/healthcare/api-client/v1beta1/fhir/requirements.txt +++ b/healthcare/api-client/v1beta1/fhir/requirements.txt @@ -4,4 +4,4 @@ google-auth==2.38.0 google-cloud==0.34.0 google-cloud-storage==2.9.0; python_version < '3.7' google-cloud-storage==2.9.0; python_version > '3.6' -requests==2.31.0 +requests==2.34.2; python_version >= '3.10' diff --git a/iap/requirements.txt b/iap/requirements.txt index 7ef1aef0122..aa724d342fa 100644 --- a/iap/requirements.txt +++ b/iap/requirements.txt @@ -2,7 +2,7 @@ cryptography==46.0.7 Flask==3.1.3; python_version >= '3.9' google-auth==2.38.0 gunicorn==23.0.0 -requests==2.32.4 +requests==2.34.2; python_version >= '3.10' requests-toolbelt==1.0.0 Werkzeug==3.1.8; python_version >= '3.9' google-cloud-iam~=2.17.0 diff --git a/kms/attestations/requirements.txt b/kms/attestations/requirements.txt index 12decf81590..9f38dfde78b 100644 --- a/kms/attestations/requirements.txt +++ b/kms/attestations/requirements.txt @@ -1,4 +1,4 @@ cryptography==45.0.1 pem==23.1.0; python_version < '3.8' pem==23.1.0; python_version > '3.7' -requests==2.31.0 +requests==2.34.2; python_version >= '3.10' diff --git a/kubernetes_engine/django_tutorial/requirements.txt b/kubernetes_engine/django_tutorial/requirements.txt index 771d0bcd1c5..ecc4a078c1e 100644 --- a/kubernetes_engine/django_tutorial/requirements.txt +++ b/kubernetes_engine/django_tutorial/requirements.txt @@ -6,3 +6,4 @@ wheel==0.40.0 gunicorn==23.0.0; python_version > '3.0' # psycopg2==2.8.4 # uncomment if you prefer to build from source psycopg2-binary==2.9.11 + \ No newline at end of file diff --git a/monitoring/opencensus/requirements.txt b/monitoring/opencensus/requirements.txt index 01843db6040..9eeb9b11393 100644 --- a/monitoring/opencensus/requirements.txt +++ b/monitoring/opencensus/requirements.txt @@ -7,5 +7,5 @@ opencensus-context==0.1.3 opencensus-ext-prometheus==0.2.1 prometheus-client==0.21.1 prometheus-flask-exporter==0.23.2 -requests==2.31.0 Werkzeug==3.1.8; python_version >= '3.9' +requests==2.34.2; python_version >= '3.10' diff --git a/monitoring/prometheus/requirements.txt b/monitoring/prometheus/requirements.txt index cf7afd20094..7bd640bb56d 100644 --- a/monitoring/prometheus/requirements.txt +++ b/monitoring/prometheus/requirements.txt @@ -4,5 +4,5 @@ google-auth==2.38.0 googleapis-common-protos==1.66.0 prometheus-client==0.21.1 prometheus-flask-exporter==0.23.2 -requests==2.31.0 Werkzeug==3.1.8; python_version >= '3.9' +requests==2.34.2; python_version >= '3.10' diff --git a/run/django/requirements-test.txt b/run/django/requirements-test.txt index 673ee1fac4b..88a15ad9823 100644 --- a/run/django/requirements-test.txt +++ b/run/django/requirements-test.txt @@ -1,4 +1,4 @@ backoff==2.2.1 pytest==9.0.3; python_version >= "3.10" pytest-django==4.12.0 -requests==2.31.0 +requests==2.34.2; python_version >= '3.10' diff --git a/run/hello-broken/requirements-test.txt b/run/hello-broken/requirements-test.txt index 22eed6f0bd7..6a4b7adfd6e 100644 --- a/run/hello-broken/requirements-test.txt +++ b/run/hello-broken/requirements-test.txt @@ -1,2 +1,2 @@ pytest==9.0.3; python_version >= "3.10" -requests==2.31.0 \ No newline at end of file +requests==2.34.2; python_version >= '3.10' diff --git a/run/markdown-preview/editor/requirements.txt b/run/markdown-preview/editor/requirements.txt index 4a7c8724efa..2df012e4f84 100644 --- a/run/markdown-preview/editor/requirements.txt +++ b/run/markdown-preview/editor/requirements.txt @@ -1,5 +1,5 @@ Flask==3.1.3; python_version >= '3.9' gunicorn==23.0.0 google-auth==2.38.0 -requests==2.31.0 Werkzeug==3.1.8; python_version >= '3.9' +requests==2.34.2; python_version >= '3.10' diff --git a/run/service-auth/requirements.txt b/run/service-auth/requirements.txt index e473b34f726..8765535c52d 100644 --- a/run/service-auth/requirements.txt +++ b/run/service-auth/requirements.txt @@ -1,5 +1,5 @@ google-auth==2.40.1 google-cloud-run==0.10.18 -requests==2.32.3 Flask==3.1.3; python_version >= '3.9' +requests==2.34.2; python_version >= '3.10' gunicorn==23.0.0 diff --git a/run/system-package/requirements-test.txt b/run/system-package/requirements-test.txt index 22eed6f0bd7..6a4b7adfd6e 100644 --- a/run/system-package/requirements-test.txt +++ b/run/system-package/requirements-test.txt @@ -1,2 +1,2 @@ pytest==9.0.3; python_version >= "3.10" -requests==2.31.0 \ No newline at end of file +requests==2.34.2; python_version >= '3.10' diff --git a/video/stitcher/requirements-test.txt b/video/stitcher/requirements-test.txt index 22eed6f0bd7..6a4b7adfd6e 100644 --- a/video/stitcher/requirements-test.txt +++ b/video/stitcher/requirements-test.txt @@ -1,2 +1,2 @@ pytest==9.0.3; python_version >= "3.10" -requests==2.31.0 \ No newline at end of file +requests==2.34.2; python_version >= '3.10' From 54f92a45a20013df6122d68391b1e02723f887c2 Mon Sep 17 00:00:00 2001 From: David del Real Sifuentes Date: Wed, 3 Jun 2026 21:42:39 +0000 Subject: [PATCH 2/4] Updating requirements to follow gemini recomendations. Updated toml file to reflect docker file. --- appengine/flexible/analytics/requirements.txt | 2 +- .../flex-templates/pipeline_with_dependencies/pyproject.toml | 2 +- .../flex-templates/pipeline_with_dependencies/requirements.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/appengine/flexible/analytics/requirements.txt b/appengine/flexible/analytics/requirements.txt index 2abef114713..28b44d78749 100644 --- a/appengine/flexible/analytics/requirements.txt +++ b/appengine/flexible/analytics/requirements.txt @@ -1,4 +1,4 @@ Flask==3.1.3; python_version >= '3.9' Werkzeug==3.1.8; python_version >= '3.9' gunicorn==23.0.0 -requests[security]==2.34.2; python_version >= '3.10' +requests==2.34.2; python_version >= '3.10' diff --git a/dataflow/flex-templates/pipeline_with_dependencies/pyproject.toml b/dataflow/flex-templates/pipeline_with_dependencies/pyproject.toml index ecd0b27cecf..e3dc2b2f52c 100644 --- a/dataflow/flex-templates/pipeline_with_dependencies/pyproject.toml +++ b/dataflow/flex-templates/pipeline_with_dependencies/pyproject.toml @@ -20,6 +20,6 @@ build-backend = "setuptools.build_meta" name = "my_package" version = "0.1.0" dependencies = [ - "apache-beam[gcp]==2.54.0", # Must match the version in `Dockerfile``. + "apache-beam[gcp]==2.73.0", # Must match the version in `Dockerfile``. "pyfiglet", # This is the only non-Beam dependency of this pipeline. ] diff --git a/dataflow/flex-templates/pipeline_with_dependencies/requirements.txt b/dataflow/flex-templates/pipeline_with_dependencies/requirements.txt index f79533051df..cc9fda76736 100644 --- a/dataflow/flex-templates/pipeline_with_dependencies/requirements.txt +++ b/dataflow/flex-templates/pipeline_with_dependencies/requirements.txt @@ -275,7 +275,7 @@ referencing==0.33.0 # jsonschema-specifications regex==2023.12.25 # via apache-beam -requests==2.34.2; python_version >= '3.10' +requests==2.31.0 # via # apache-beam # google-api-core From b9c0c974282b37c3de6637278896953b649bb694 Mon Sep 17 00:00:00 2001 From: David del Real Sifuentes Date: Wed, 3 Jun 2026 21:54:58 +0000 Subject: [PATCH 3/4] Removed empty space. --- kubernetes_engine/django_tutorial/requirements.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/kubernetes_engine/django_tutorial/requirements.txt b/kubernetes_engine/django_tutorial/requirements.txt index ecc4a078c1e..771d0bcd1c5 100644 --- a/kubernetes_engine/django_tutorial/requirements.txt +++ b/kubernetes_engine/django_tutorial/requirements.txt @@ -6,4 +6,3 @@ wheel==0.40.0 gunicorn==23.0.0; python_version > '3.0' # psycopg2==2.8.4 # uncomment if you prefer to build from source psycopg2-binary==2.9.11 - \ No newline at end of file From 47e00288ea2e3eb8f31bc227d532ffb9b6e4e33e Mon Sep 17 00:00:00 2001 From: David del Real Sifuentes Date: Wed, 3 Jun 2026 23:09:36 +0000 Subject: [PATCH 4/4] Fixed removed spaces and other minor mistakes. --- appengine/flexible/metadata/requirements.txt | 2 +- appengine/standard/migration/urlfetch/async/requirements.txt | 2 +- cloud_tasks/http_queues/requirements.txt | 2 +- composer/rest/composer2/requirements-test.txt | 1 + compute/metadata/requirements.txt | 2 +- compute/oslogin/requirements.txt | 2 +- 6 files changed, 6 insertions(+), 5 deletions(-) diff --git a/appengine/flexible/metadata/requirements.txt b/appengine/flexible/metadata/requirements.txt index cfa65353ec3..fa909c4e380 100644 --- a/appengine/flexible/metadata/requirements.txt +++ b/appengine/flexible/metadata/requirements.txt @@ -1,3 +1,3 @@ Flask==3.1.3; python_version >= '3.9' gunicorn==23.0.0 -requests[security]==2.34.2; python_version >= '3.10' +requests==2.34.2; python_version >= '3.10' diff --git a/appengine/standard/migration/urlfetch/async/requirements.txt b/appengine/standard/migration/urlfetch/async/requirements.txt index 8d1fca16107..f0ccd6b272e 100644 --- a/appengine/standard/migration/urlfetch/async/requirements.txt +++ b/appengine/standard/migration/urlfetch/async/requirements.txt @@ -1,5 +1,5 @@ Flask==3.1.3; python_version >= '3.9' -Werkzeug==3.1.8; python_version >= '3.9' requests==2.34.2; python_version >= '3.10' requests-futures==1.0.2 requests-toolbelt==1.0.0 +Werkzeug==3.1.8; python_version >= '3.9' diff --git a/cloud_tasks/http_queues/requirements.txt b/cloud_tasks/http_queues/requirements.txt index 33d47d149cf..f0c0b8a5f19 100644 --- a/cloud_tasks/http_queues/requirements.txt +++ b/cloud_tasks/http_queues/requirements.txt @@ -1,2 +1,2 @@ google-cloud-tasks==2.18.0 -requests==2.34.2; python_version >= '3.10' \ No newline at end of file +requests==2.34.2; python_version >= '3.10' diff --git a/composer/rest/composer2/requirements-test.txt b/composer/rest/composer2/requirements-test.txt index c9e154ba440..6a4b7adfd6e 100644 --- a/composer/rest/composer2/requirements-test.txt +++ b/composer/rest/composer2/requirements-test.txt @@ -1 +1,2 @@ pytest==9.0.3; python_version >= "3.10" +requests==2.34.2; python_version >= '3.10' diff --git a/compute/metadata/requirements.txt b/compute/metadata/requirements.txt index 04b4818843a..e41a7179eed 100644 --- a/compute/metadata/requirements.txt +++ b/compute/metadata/requirements.txt @@ -1,2 +1,2 @@ requests==2.34.2; python_version >= '3.10' -google-auth==2.38.0 \ No newline at end of file +google-auth==2.38.0 diff --git a/compute/oslogin/requirements.txt b/compute/oslogin/requirements.txt index fbc60a92450..3611f7bdf44 100644 --- a/compute/oslogin/requirements.txt +++ b/compute/oslogin/requirements.txt @@ -3,4 +3,4 @@ google-auth==2.38.0 google-auth-httplib2==0.2.0 google-cloud-compute==1.11.0 google-cloud-os-login==2.15.1 -requests==2.34.2; python_version >= '3.10' \ No newline at end of file +requests==2.34.2; python_version >= '3.10'