From 310f207411da0382af310172344f19c644c14e6a Mon Sep 17 00:00:00 2001 From: Tres Seaver Date: Thu, 5 Aug 2021 11:20:35 -0400 Subject: [PATCH] fix(deps): add explicit ranges for 'google-api-core' and 'google-auth' (#530) Transitive dependency resolution breaks unit tests under Python 3.6 following PR #520. Pin minima for those ranges explicitly when testing under Python 3.6. Closes #529. --- setup.py | 6 ++++-- testing/constraints-3.6.txt | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index c00257025..3f28dc981 100644 --- a/setup.py +++ b/setup.py @@ -28,8 +28,10 @@ # 'Development Status :: 5 - Production/Stable' release_status = "Development Status :: 5 - Production/Stable" dependencies = [ - "google-auth >= 1.24.0, < 2.0dev; python_version<'3.0'", - "google-auth >= 1.24.0, < 3.0dev; python_version>='3.6'", + "google-auth >= 1.25.0, < 2.0dev; python_version<'3.0'", + "google-auth >= 1.25.0, < 3.0dev; python_version>='3.6'", + "google-api-core >= 1.29.0, < 2.0dev; python_version<'3.0'", + "google-api-core >= 1.29.0, < 3.0dev; python_version>='3.6'", "google-cloud-core >= 1.6.0, < 2.0dev; python_version<'3.0'", "google-cloud-core >= 1.6.0, < 3.0dev; python_version>='3.6'", "google-resumable-media >= 1.3.0, < 2.0dev; python_version<'3.0'", diff --git a/testing/constraints-3.6.txt b/testing/constraints-3.6.txt index 228699957..a2729fd6f 100644 --- a/testing/constraints-3.6.txt +++ b/testing/constraints-3.6.txt @@ -5,7 +5,8 @@ # # e.g., if setup.py has "foo >= 1.14.0, < 2.0.0dev", # Then this file should have foo==1.14.0 -google-auth==1.24.0 +google-auth==1.25.0 +google-api-core==1.29.0 google-cloud-core==1.6.0 google-resumable-media==1.3.0 requests==2.18.0