From 0d6dca0663cb122abb16da497ee9f9612f229953 Mon Sep 17 00:00:00 2001 From: Daniel Sanche Date: Fri, 13 Mar 2026 14:26:23 -0700 Subject: [PATCH 01/16] chore: fix testing pins to target minimum supported versions --- gapic/templates/testing/constraints-3.9.txt.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gapic/templates/testing/constraints-3.9.txt.j2 b/gapic/templates/testing/constraints-3.9.txt.j2 index 59cd2c38c8..714c7f6599 100644 --- a/gapic/templates/testing/constraints-3.9.txt.j2 +++ b/gapic/templates/testing/constraints-3.9.txt.j2 @@ -6,8 +6,8 @@ # pinning their versions to their lower bounds. # For example, if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0", # then this file should have google-cloud-foo==1.14.0 -google-api-core==2.21.0 -google-auth==2.35.0 +google-api-core==2.11.0 +google-auth==2.14.1 # TODO(https://github.com/googleapis/gapic-generator-python/issues/2453) # Add the minimum supported version of grpcio to constraints files proto-plus==1.22.3 From dbbf80b8294027aa459f5e6b60b629fa744eacd8 Mon Sep 17 00:00:00 2001 From: Daniel Sanche Date: Fri, 13 Mar 2026 15:05:28 -0700 Subject: [PATCH 02/16] upgrade api-core version --- gapic/templates/setup.py.j2 | 2 +- gapic/templates/testing/constraints-3.9.txt.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gapic/templates/setup.py.j2 b/gapic/templates/setup.py.j2 index 831f5d0f31..a691a8169b 100644 --- a/gapic/templates/setup.py.j2 +++ b/gapic/templates/setup.py.j2 @@ -33,7 +33,7 @@ else: release_status = "Development Status :: 5 - Production/Stable" dependencies = [ - "google-api-core[grpc] >= 2.11.0, <3.0.0", + "google-api-core[grpc] >= 2.21.0, <3.0.0", # Exclude incompatible versions of `google-auth` # See https://github.com/googleapis/google-cloud-python/issues/12364 "google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0", diff --git a/gapic/templates/testing/constraints-3.9.txt.j2 b/gapic/templates/testing/constraints-3.9.txt.j2 index 714c7f6599..358539b56f 100644 --- a/gapic/templates/testing/constraints-3.9.txt.j2 +++ b/gapic/templates/testing/constraints-3.9.txt.j2 @@ -6,7 +6,7 @@ # pinning their versions to their lower bounds. # For example, if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0", # then this file should have google-cloud-foo==1.14.0 -google-api-core==2.11.0 +google-api-core==2.21.0 google-auth==2.14.1 # TODO(https://github.com/googleapis/gapic-generator-python/issues/2453) # Add the minimum supported version of grpcio to constraints files From 3d121a243d0e42bef727d3dc0b28f2f06fa293de Mon Sep 17 00:00:00 2001 From: Daniel Sanche Date: Fri, 13 Mar 2026 16:19:38 -0700 Subject: [PATCH 03/16] attempt constraint modification --- noxfile.py | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/noxfile.py b/noxfile.py index 649de4e7f0..f19f91282e 100644 --- a/noxfile.py +++ b/noxfile.py @@ -357,13 +357,17 @@ def showcase_library( constraints_path = str( f"{tmp_dir}/testing/constraints-{session.python}.txt" ) - # Install the library with a constraints file. - session.install( - "-e", - tmp_dir + ("[async_rest]" if rest_async_io_enabled else ""), - "-r", - constraints_path, - ) + if rest_async_io_enabled: + # modify constraints file to support async_rest + constraints = [line.strip() for line in open(constraints_path) if "google-auth" not in line and line.strip()] + session.install( + "-e", + f"{tmp_dir}[async_rest]", + *constraints + ) + else: + # Install the library with a constraints file. + session.install("-e", tmp_dir, "-r", constraints_path) # Exclude `google-auth==2.40.0` which contains a regression # https://github.com/googleapis/gapic-generator-python/issues/2385 session.install( From 22f24bfd6d5e51dcd6c3a49e1e29452237b00d39 Mon Sep 17 00:00:00 2001 From: Daniel Sanche Date: Fri, 13 Mar 2026 16:46:38 -0700 Subject: [PATCH 04/16] fixed constraints parsing --- noxfile.py | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/noxfile.py b/noxfile.py index f19f91282e..39c5cfb8ea 100644 --- a/noxfile.py +++ b/noxfile.py @@ -357,17 +357,20 @@ def showcase_library( constraints_path = str( f"{tmp_dir}/testing/constraints-{session.python}.txt" ) - if rest_async_io_enabled: - # modify constraints file to support async_rest - constraints = [line.strip() for line in open(constraints_path) if "google-auth" not in line and line.strip()] - session.install( - "-e", - f"{tmp_dir}[async_rest]", - *constraints - ) - else: + if not rest_async_io_enabled: # Install the library with a constraints file. session.install("-e", tmp_dir, "-r", constraints_path) + else: + # modify constraints file to support async_rest + constraints = [ + line.strip() + for line in open(constraints_path) + if "google-auth" not in line + and not line.startswith("#") + and line.strip() + ] + session.install("-e", f"{tmp_dir}[async_rest]", *constraints) + # Exclude `google-auth==2.40.0` which contains a regression # https://github.com/googleapis/gapic-generator-python/issues/2385 session.install( From 75d703f57e54c18f52abd9b469abdbba052aae3a Mon Sep 17 00:00:00 2001 From: Daniel Sanche Date: Fri, 13 Mar 2026 17:13:26 -0700 Subject: [PATCH 05/16] updated goldens --- tests/integration/goldens/asset/setup.py | 2 +- tests/integration/goldens/asset/testing/constraints-3.9.txt | 2 +- tests/integration/goldens/credentials/setup.py | 2 +- .../integration/goldens/credentials/testing/constraints-3.9.txt | 2 +- tests/integration/goldens/eventarc/setup.py | 2 +- tests/integration/goldens/eventarc/testing/constraints-3.9.txt | 2 +- tests/integration/goldens/logging/setup.py | 2 +- tests/integration/goldens/logging/testing/constraints-3.9.txt | 2 +- tests/integration/goldens/logging_internal/setup.py | 2 +- .../goldens/logging_internal/testing/constraints-3.9.txt | 2 +- tests/integration/goldens/redis/setup.py | 2 +- tests/integration/goldens/redis/testing/constraints-3.9.txt | 2 +- tests/integration/goldens/redis_selective/setup.py | 2 +- .../goldens/redis_selective/testing/constraints-3.9.txt | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/tests/integration/goldens/asset/setup.py b/tests/integration/goldens/asset/setup.py index 7f5523e3bf..5b9a20d329 100755 --- a/tests/integration/goldens/asset/setup.py +++ b/tests/integration/goldens/asset/setup.py @@ -39,7 +39,7 @@ release_status = "Development Status :: 5 - Production/Stable" dependencies = [ - "google-api-core[grpc] >= 2.11.0, <3.0.0", + "google-api-core[grpc] >= 2.21.0, <3.0.0", # Exclude incompatible versions of `google-auth` # See https://github.com/googleapis/google-cloud-python/issues/12364 "google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0", diff --git a/tests/integration/goldens/asset/testing/constraints-3.9.txt b/tests/integration/goldens/asset/testing/constraints-3.9.txt index 66ee36eb25..935c36bc88 100755 --- a/tests/integration/goldens/asset/testing/constraints-3.9.txt +++ b/tests/integration/goldens/asset/testing/constraints-3.9.txt @@ -6,7 +6,7 @@ # For example, if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0", # then this file should have google-cloud-foo==1.14.0 google-api-core==2.21.0 -google-auth==2.35.0 +google-auth==2.14.1 # TODO(https://github.com/googleapis/gapic-generator-python/issues/2453) # Add the minimum supported version of grpcio to constraints files proto-plus==1.22.3 diff --git a/tests/integration/goldens/credentials/setup.py b/tests/integration/goldens/credentials/setup.py index 8da6aed1dd..c4a6f03f3f 100755 --- a/tests/integration/goldens/credentials/setup.py +++ b/tests/integration/goldens/credentials/setup.py @@ -39,7 +39,7 @@ release_status = "Development Status :: 5 - Production/Stable" dependencies = [ - "google-api-core[grpc] >= 2.11.0, <3.0.0", + "google-api-core[grpc] >= 2.21.0, <3.0.0", # Exclude incompatible versions of `google-auth` # See https://github.com/googleapis/google-cloud-python/issues/12364 "google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0", diff --git a/tests/integration/goldens/credentials/testing/constraints-3.9.txt b/tests/integration/goldens/credentials/testing/constraints-3.9.txt index ac3833d41b..f873389723 100755 --- a/tests/integration/goldens/credentials/testing/constraints-3.9.txt +++ b/tests/integration/goldens/credentials/testing/constraints-3.9.txt @@ -6,7 +6,7 @@ # For example, if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0", # then this file should have google-cloud-foo==1.14.0 google-api-core==2.21.0 -google-auth==2.35.0 +google-auth==2.14.1 # TODO(https://github.com/googleapis/gapic-generator-python/issues/2453) # Add the minimum supported version of grpcio to constraints files proto-plus==1.22.3 diff --git a/tests/integration/goldens/eventarc/setup.py b/tests/integration/goldens/eventarc/setup.py index cbb2177568..bf811dc3fc 100755 --- a/tests/integration/goldens/eventarc/setup.py +++ b/tests/integration/goldens/eventarc/setup.py @@ -39,7 +39,7 @@ release_status = "Development Status :: 5 - Production/Stable" dependencies = [ - "google-api-core[grpc] >= 2.11.0, <3.0.0", + "google-api-core[grpc] >= 2.21.0, <3.0.0", # Exclude incompatible versions of `google-auth` # See https://github.com/googleapis/google-cloud-python/issues/12364 "google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0", diff --git a/tests/integration/goldens/eventarc/testing/constraints-3.9.txt b/tests/integration/goldens/eventarc/testing/constraints-3.9.txt index dcb9a9b3d8..2577af6590 100755 --- a/tests/integration/goldens/eventarc/testing/constraints-3.9.txt +++ b/tests/integration/goldens/eventarc/testing/constraints-3.9.txt @@ -6,7 +6,7 @@ # For example, if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0", # then this file should have google-cloud-foo==1.14.0 google-api-core==2.21.0 -google-auth==2.35.0 +google-auth==2.14.1 # TODO(https://github.com/googleapis/gapic-generator-python/issues/2453) # Add the minimum supported version of grpcio to constraints files proto-plus==1.22.3 diff --git a/tests/integration/goldens/logging/setup.py b/tests/integration/goldens/logging/setup.py index 0b99458443..560660d936 100755 --- a/tests/integration/goldens/logging/setup.py +++ b/tests/integration/goldens/logging/setup.py @@ -39,7 +39,7 @@ release_status = "Development Status :: 5 - Production/Stable" dependencies = [ - "google-api-core[grpc] >= 2.11.0, <3.0.0", + "google-api-core[grpc] >= 2.21.0, <3.0.0", # Exclude incompatible versions of `google-auth` # See https://github.com/googleapis/google-cloud-python/issues/12364 "google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0", diff --git a/tests/integration/goldens/logging/testing/constraints-3.9.txt b/tests/integration/goldens/logging/testing/constraints-3.9.txt index ac3833d41b..f873389723 100755 --- a/tests/integration/goldens/logging/testing/constraints-3.9.txt +++ b/tests/integration/goldens/logging/testing/constraints-3.9.txt @@ -6,7 +6,7 @@ # For example, if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0", # then this file should have google-cloud-foo==1.14.0 google-api-core==2.21.0 -google-auth==2.35.0 +google-auth==2.14.1 # TODO(https://github.com/googleapis/gapic-generator-python/issues/2453) # Add the minimum supported version of grpcio to constraints files proto-plus==1.22.3 diff --git a/tests/integration/goldens/logging_internal/setup.py b/tests/integration/goldens/logging_internal/setup.py index 0b99458443..560660d936 100755 --- a/tests/integration/goldens/logging_internal/setup.py +++ b/tests/integration/goldens/logging_internal/setup.py @@ -39,7 +39,7 @@ release_status = "Development Status :: 5 - Production/Stable" dependencies = [ - "google-api-core[grpc] >= 2.11.0, <3.0.0", + "google-api-core[grpc] >= 2.21.0, <3.0.0", # Exclude incompatible versions of `google-auth` # See https://github.com/googleapis/google-cloud-python/issues/12364 "google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0", diff --git a/tests/integration/goldens/logging_internal/testing/constraints-3.9.txt b/tests/integration/goldens/logging_internal/testing/constraints-3.9.txt index ac3833d41b..f873389723 100755 --- a/tests/integration/goldens/logging_internal/testing/constraints-3.9.txt +++ b/tests/integration/goldens/logging_internal/testing/constraints-3.9.txt @@ -6,7 +6,7 @@ # For example, if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0", # then this file should have google-cloud-foo==1.14.0 google-api-core==2.21.0 -google-auth==2.35.0 +google-auth==2.14.1 # TODO(https://github.com/googleapis/gapic-generator-python/issues/2453) # Add the minimum supported version of grpcio to constraints files proto-plus==1.22.3 diff --git a/tests/integration/goldens/redis/setup.py b/tests/integration/goldens/redis/setup.py index 2cf3926c8e..36adfd9e3c 100755 --- a/tests/integration/goldens/redis/setup.py +++ b/tests/integration/goldens/redis/setup.py @@ -39,7 +39,7 @@ release_status = "Development Status :: 5 - Production/Stable" dependencies = [ - "google-api-core[grpc] >= 2.11.0, <3.0.0", + "google-api-core[grpc] >= 2.21.0, <3.0.0", # Exclude incompatible versions of `google-auth` # See https://github.com/googleapis/google-cloud-python/issues/12364 "google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0", diff --git a/tests/integration/goldens/redis/testing/constraints-3.9.txt b/tests/integration/goldens/redis/testing/constraints-3.9.txt index ac3833d41b..f873389723 100755 --- a/tests/integration/goldens/redis/testing/constraints-3.9.txt +++ b/tests/integration/goldens/redis/testing/constraints-3.9.txt @@ -6,7 +6,7 @@ # For example, if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0", # then this file should have google-cloud-foo==1.14.0 google-api-core==2.21.0 -google-auth==2.35.0 +google-auth==2.14.1 # TODO(https://github.com/googleapis/gapic-generator-python/issues/2453) # Add the minimum supported version of grpcio to constraints files proto-plus==1.22.3 diff --git a/tests/integration/goldens/redis_selective/setup.py b/tests/integration/goldens/redis_selective/setup.py index 2cf3926c8e..36adfd9e3c 100755 --- a/tests/integration/goldens/redis_selective/setup.py +++ b/tests/integration/goldens/redis_selective/setup.py @@ -39,7 +39,7 @@ release_status = "Development Status :: 5 - Production/Stable" dependencies = [ - "google-api-core[grpc] >= 2.11.0, <3.0.0", + "google-api-core[grpc] >= 2.21.0, <3.0.0", # Exclude incompatible versions of `google-auth` # See https://github.com/googleapis/google-cloud-python/issues/12364 "google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0", diff --git a/tests/integration/goldens/redis_selective/testing/constraints-3.9.txt b/tests/integration/goldens/redis_selective/testing/constraints-3.9.txt index ac3833d41b..f873389723 100755 --- a/tests/integration/goldens/redis_selective/testing/constraints-3.9.txt +++ b/tests/integration/goldens/redis_selective/testing/constraints-3.9.txt @@ -6,7 +6,7 @@ # For example, if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0", # then this file should have google-cloud-foo==1.14.0 google-api-core==2.21.0 -google-auth==2.35.0 +google-auth==2.14.1 # TODO(https://github.com/googleapis/gapic-generator-python/issues/2453) # Add the minimum supported version of grpcio to constraints files proto-plus==1.22.3 From e892758d505d7591f3fbce75b22b651b787d5e66 Mon Sep 17 00:00:00 2001 From: Daniel Sanche Date: Tue, 17 Mar 2026 15:19:12 -0700 Subject: [PATCH 06/16] use dict for new constraints --- noxfile.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/noxfile.py b/noxfile.py index 39c5cfb8ea..bdd7eed57a 100644 --- a/noxfile.py +++ b/noxfile.py @@ -361,14 +361,15 @@ def showcase_library( # Install the library with a constraints file. session.install("-e", tmp_dir, "-r", constraints_path) else: - # modify constraints file to support async_rest + # modify constraints file to support async_rest min constraints + async_rest_constraints = {"google-auth": "2.35.0"} constraints = [ line.strip() for line in open(constraints_path) - if "google-auth" not in line + if all([key not in line for key in async_rest_constraints.keys()]) and not line.startswith("#") and line.strip() - ] + ] + [f"{key}=={value}" for key, value in async_rest_constraints.items()] session.install("-e", f"{tmp_dir}[async_rest]", *constraints) # Exclude `google-auth==2.40.0` which contains a regression From d01d89742dd574d58c452ba2f692c39631aee321 Mon Sep 17 00:00:00 2001 From: Daniel Sanche Date: Tue, 17 Mar 2026 15:34:07 -0700 Subject: [PATCH 07/16] downgraded api-core --- gapic/templates/setup.py.j2 | 2 +- gapic/templates/testing/constraints-3.9.txt.j2 | 2 +- noxfile.py | 14 ++++---------- tests/integration/goldens/asset/setup.py | 2 +- .../goldens/asset/testing/constraints-3.9.txt | 2 +- tests/integration/goldens/credentials/setup.py | 2 +- .../credentials/testing/constraints-3.9.txt | 2 +- tests/integration/goldens/eventarc/setup.py | 2 +- .../goldens/eventarc/testing/constraints-3.9.txt | 2 +- tests/integration/goldens/logging/setup.py | 2 +- .../goldens/logging/testing/constraints-3.9.txt | 2 +- .../integration/goldens/logging_internal/setup.py | 2 +- .../logging_internal/testing/constraints-3.9.txt | 2 +- tests/integration/goldens/redis/setup.py | 2 +- .../goldens/redis/testing/constraints-3.9.txt | 2 +- tests/integration/goldens/redis_selective/setup.py | 2 +- .../redis_selective/testing/constraints-3.9.txt | 2 +- 17 files changed, 20 insertions(+), 26 deletions(-) diff --git a/gapic/templates/setup.py.j2 b/gapic/templates/setup.py.j2 index a691a8169b..831f5d0f31 100644 --- a/gapic/templates/setup.py.j2 +++ b/gapic/templates/setup.py.j2 @@ -33,7 +33,7 @@ else: release_status = "Development Status :: 5 - Production/Stable" dependencies = [ - "google-api-core[grpc] >= 2.21.0, <3.0.0", + "google-api-core[grpc] >= 2.11.0, <3.0.0", # Exclude incompatible versions of `google-auth` # See https://github.com/googleapis/google-cloud-python/issues/12364 "google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0", diff --git a/gapic/templates/testing/constraints-3.9.txt.j2 b/gapic/templates/testing/constraints-3.9.txt.j2 index 358539b56f..714c7f6599 100644 --- a/gapic/templates/testing/constraints-3.9.txt.j2 +++ b/gapic/templates/testing/constraints-3.9.txt.j2 @@ -6,7 +6,7 @@ # pinning their versions to their lower bounds. # For example, if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0", # then this file should have google-cloud-foo==1.14.0 -google-api-core==2.21.0 +google-api-core==2.11.0 google-auth==2.14.1 # TODO(https://github.com/googleapis/gapic-generator-python/issues/2453) # Add the minimum supported version of grpcio to constraints files diff --git a/noxfile.py b/noxfile.py index bdd7eed57a..3f9026d8ab 100644 --- a/noxfile.py +++ b/noxfile.py @@ -362,7 +362,10 @@ def showcase_library( session.install("-e", tmp_dir, "-r", constraints_path) else: # modify constraints file to support async_rest min constraints - async_rest_constraints = {"google-auth": "2.35.0"} + async_rest_constraints = { + "google-auth": "2.35.0", + "google-api-core": "2.21.0", + } constraints = [ line.strip() for line in open(constraints_path) @@ -371,15 +374,6 @@ def showcase_library( and line.strip() ] + [f"{key}=={value}" for key, value in async_rest_constraints.items()] session.install("-e", f"{tmp_dir}[async_rest]", *constraints) - - # Exclude `google-auth==2.40.0` which contains a regression - # https://github.com/googleapis/gapic-generator-python/issues/2385 - session.install( - "--no-cache-dir", - "--force-reinstall", - "--upgrade", - "google-auth[aiohttp]!=2.40.0", - ) else: # The ads templates do not have constraints files. # See https://github.com/googleapis/gapic-generator-python/issues/1788 diff --git a/tests/integration/goldens/asset/setup.py b/tests/integration/goldens/asset/setup.py index 5b9a20d329..7f5523e3bf 100755 --- a/tests/integration/goldens/asset/setup.py +++ b/tests/integration/goldens/asset/setup.py @@ -39,7 +39,7 @@ release_status = "Development Status :: 5 - Production/Stable" dependencies = [ - "google-api-core[grpc] >= 2.21.0, <3.0.0", + "google-api-core[grpc] >= 2.11.0, <3.0.0", # Exclude incompatible versions of `google-auth` # See https://github.com/googleapis/google-cloud-python/issues/12364 "google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0", diff --git a/tests/integration/goldens/asset/testing/constraints-3.9.txt b/tests/integration/goldens/asset/testing/constraints-3.9.txt index 935c36bc88..2fa2ea99c3 100755 --- a/tests/integration/goldens/asset/testing/constraints-3.9.txt +++ b/tests/integration/goldens/asset/testing/constraints-3.9.txt @@ -5,7 +5,7 @@ # pinning their versions to their lower bounds. # For example, if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0", # then this file should have google-cloud-foo==1.14.0 -google-api-core==2.21.0 +google-api-core==2.11.0 google-auth==2.14.1 # TODO(https://github.com/googleapis/gapic-generator-python/issues/2453) # Add the minimum supported version of grpcio to constraints files diff --git a/tests/integration/goldens/credentials/setup.py b/tests/integration/goldens/credentials/setup.py index c4a6f03f3f..8da6aed1dd 100755 --- a/tests/integration/goldens/credentials/setup.py +++ b/tests/integration/goldens/credentials/setup.py @@ -39,7 +39,7 @@ release_status = "Development Status :: 5 - Production/Stable" dependencies = [ - "google-api-core[grpc] >= 2.21.0, <3.0.0", + "google-api-core[grpc] >= 2.11.0, <3.0.0", # Exclude incompatible versions of `google-auth` # See https://github.com/googleapis/google-cloud-python/issues/12364 "google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0", diff --git a/tests/integration/goldens/credentials/testing/constraints-3.9.txt b/tests/integration/goldens/credentials/testing/constraints-3.9.txt index f873389723..17c7bcd34c 100755 --- a/tests/integration/goldens/credentials/testing/constraints-3.9.txt +++ b/tests/integration/goldens/credentials/testing/constraints-3.9.txt @@ -5,7 +5,7 @@ # pinning their versions to their lower bounds. # For example, if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0", # then this file should have google-cloud-foo==1.14.0 -google-api-core==2.21.0 +google-api-core==2.11.0 google-auth==2.14.1 # TODO(https://github.com/googleapis/gapic-generator-python/issues/2453) # Add the minimum supported version of grpcio to constraints files diff --git a/tests/integration/goldens/eventarc/setup.py b/tests/integration/goldens/eventarc/setup.py index bf811dc3fc..cbb2177568 100755 --- a/tests/integration/goldens/eventarc/setup.py +++ b/tests/integration/goldens/eventarc/setup.py @@ -39,7 +39,7 @@ release_status = "Development Status :: 5 - Production/Stable" dependencies = [ - "google-api-core[grpc] >= 2.21.0, <3.0.0", + "google-api-core[grpc] >= 2.11.0, <3.0.0", # Exclude incompatible versions of `google-auth` # See https://github.com/googleapis/google-cloud-python/issues/12364 "google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0", diff --git a/tests/integration/goldens/eventarc/testing/constraints-3.9.txt b/tests/integration/goldens/eventarc/testing/constraints-3.9.txt index 2577af6590..55ec665937 100755 --- a/tests/integration/goldens/eventarc/testing/constraints-3.9.txt +++ b/tests/integration/goldens/eventarc/testing/constraints-3.9.txt @@ -5,7 +5,7 @@ # pinning their versions to their lower bounds. # For example, if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0", # then this file should have google-cloud-foo==1.14.0 -google-api-core==2.21.0 +google-api-core==2.11.0 google-auth==2.14.1 # TODO(https://github.com/googleapis/gapic-generator-python/issues/2453) # Add the minimum supported version of grpcio to constraints files diff --git a/tests/integration/goldens/logging/setup.py b/tests/integration/goldens/logging/setup.py index 560660d936..0b99458443 100755 --- a/tests/integration/goldens/logging/setup.py +++ b/tests/integration/goldens/logging/setup.py @@ -39,7 +39,7 @@ release_status = "Development Status :: 5 - Production/Stable" dependencies = [ - "google-api-core[grpc] >= 2.21.0, <3.0.0", + "google-api-core[grpc] >= 2.11.0, <3.0.0", # Exclude incompatible versions of `google-auth` # See https://github.com/googleapis/google-cloud-python/issues/12364 "google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0", diff --git a/tests/integration/goldens/logging/testing/constraints-3.9.txt b/tests/integration/goldens/logging/testing/constraints-3.9.txt index f873389723..17c7bcd34c 100755 --- a/tests/integration/goldens/logging/testing/constraints-3.9.txt +++ b/tests/integration/goldens/logging/testing/constraints-3.9.txt @@ -5,7 +5,7 @@ # pinning their versions to their lower bounds. # For example, if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0", # then this file should have google-cloud-foo==1.14.0 -google-api-core==2.21.0 +google-api-core==2.11.0 google-auth==2.14.1 # TODO(https://github.com/googleapis/gapic-generator-python/issues/2453) # Add the minimum supported version of grpcio to constraints files diff --git a/tests/integration/goldens/logging_internal/setup.py b/tests/integration/goldens/logging_internal/setup.py index 560660d936..0b99458443 100755 --- a/tests/integration/goldens/logging_internal/setup.py +++ b/tests/integration/goldens/logging_internal/setup.py @@ -39,7 +39,7 @@ release_status = "Development Status :: 5 - Production/Stable" dependencies = [ - "google-api-core[grpc] >= 2.21.0, <3.0.0", + "google-api-core[grpc] >= 2.11.0, <3.0.0", # Exclude incompatible versions of `google-auth` # See https://github.com/googleapis/google-cloud-python/issues/12364 "google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0", diff --git a/tests/integration/goldens/logging_internal/testing/constraints-3.9.txt b/tests/integration/goldens/logging_internal/testing/constraints-3.9.txt index f873389723..17c7bcd34c 100755 --- a/tests/integration/goldens/logging_internal/testing/constraints-3.9.txt +++ b/tests/integration/goldens/logging_internal/testing/constraints-3.9.txt @@ -5,7 +5,7 @@ # pinning their versions to their lower bounds. # For example, if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0", # then this file should have google-cloud-foo==1.14.0 -google-api-core==2.21.0 +google-api-core==2.11.0 google-auth==2.14.1 # TODO(https://github.com/googleapis/gapic-generator-python/issues/2453) # Add the minimum supported version of grpcio to constraints files diff --git a/tests/integration/goldens/redis/setup.py b/tests/integration/goldens/redis/setup.py index 36adfd9e3c..2cf3926c8e 100755 --- a/tests/integration/goldens/redis/setup.py +++ b/tests/integration/goldens/redis/setup.py @@ -39,7 +39,7 @@ release_status = "Development Status :: 5 - Production/Stable" dependencies = [ - "google-api-core[grpc] >= 2.21.0, <3.0.0", + "google-api-core[grpc] >= 2.11.0, <3.0.0", # Exclude incompatible versions of `google-auth` # See https://github.com/googleapis/google-cloud-python/issues/12364 "google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0", diff --git a/tests/integration/goldens/redis/testing/constraints-3.9.txt b/tests/integration/goldens/redis/testing/constraints-3.9.txt index f873389723..17c7bcd34c 100755 --- a/tests/integration/goldens/redis/testing/constraints-3.9.txt +++ b/tests/integration/goldens/redis/testing/constraints-3.9.txt @@ -5,7 +5,7 @@ # pinning their versions to their lower bounds. # For example, if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0", # then this file should have google-cloud-foo==1.14.0 -google-api-core==2.21.0 +google-api-core==2.11.0 google-auth==2.14.1 # TODO(https://github.com/googleapis/gapic-generator-python/issues/2453) # Add the minimum supported version of grpcio to constraints files diff --git a/tests/integration/goldens/redis_selective/setup.py b/tests/integration/goldens/redis_selective/setup.py index 36adfd9e3c..2cf3926c8e 100755 --- a/tests/integration/goldens/redis_selective/setup.py +++ b/tests/integration/goldens/redis_selective/setup.py @@ -39,7 +39,7 @@ release_status = "Development Status :: 5 - Production/Stable" dependencies = [ - "google-api-core[grpc] >= 2.21.0, <3.0.0", + "google-api-core[grpc] >= 2.11.0, <3.0.0", # Exclude incompatible versions of `google-auth` # See https://github.com/googleapis/google-cloud-python/issues/12364 "google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0", diff --git a/tests/integration/goldens/redis_selective/testing/constraints-3.9.txt b/tests/integration/goldens/redis_selective/testing/constraints-3.9.txt index f873389723..17c7bcd34c 100755 --- a/tests/integration/goldens/redis_selective/testing/constraints-3.9.txt +++ b/tests/integration/goldens/redis_selective/testing/constraints-3.9.txt @@ -5,7 +5,7 @@ # pinning their versions to their lower bounds. # For example, if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0", # then this file should have google-cloud-foo==1.14.0 -google-api-core==2.21.0 +google-api-core==2.11.0 google-auth==2.14.1 # TODO(https://github.com/googleapis/gapic-generator-python/issues/2453) # Add the minimum supported version of grpcio to constraints files From c43c636cd26b5d289669088a788a57d34e327706 Mon Sep 17 00:00:00 2001 From: Daniel Sanche Date: Tue, 17 Mar 2026 15:50:47 -0700 Subject: [PATCH 08/16] improved replacement logic --- noxfile.py | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/noxfile.py b/noxfile.py index 3f9026d8ab..77a20ff9aa 100644 --- a/noxfile.py +++ b/noxfile.py @@ -361,18 +361,30 @@ def showcase_library( # Install the library with a constraints file. session.install("-e", tmp_dir, "-r", constraints_path) else: - # modify constraints file to support async_rest min constraints + # Modify constraints file to support async_rest min constraints. + # TODO: Move into own contraints-async-rest.txt file once + # async-rest is fully supported async_rest_constraints = { "google-auth": "2.35.0", "google-api-core": "2.21.0", } + with open(constraints_path) as f: + constraints_lines = [ + line.strip() + for line in f + if line.strip() and not line.startswith("#") + ] + # Only modify dependencies in the original constraints file. + replace_keys = { + key for key in async_rest_constraints + if any(line.startswith(key) for line in constraints_lines) + } + # Replace async_rest constraints in final output. constraints = [ - line.strip() - for line in open(constraints_path) - if all([key not in line for key in async_rest_constraints.keys()]) - and not line.startswith("#") - and line.strip() - ] + [f"{key}=={value}" for key, value in async_rest_constraints.items()] + line for line in original_lines + if not any(line.startswith(key) for key in replace_keys) + ] + [f"{k}=={async_rest_constraints[k]}" for k in replace_keys] + session.install("-e", f"{tmp_dir}[async_rest]", *constraints) else: # The ads templates do not have constraints files. From 863b4aa4b5afead4dd5b6753696ca3fc3a941efe Mon Sep 17 00:00:00 2001 From: Daniel Sanche Date: Tue, 17 Mar 2026 16:08:38 -0700 Subject: [PATCH 09/16] fixed variable name --- noxfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/noxfile.py b/noxfile.py index 77a20ff9aa..92bf62b938 100644 --- a/noxfile.py +++ b/noxfile.py @@ -381,7 +381,7 @@ def showcase_library( } # Replace async_rest constraints in final output. constraints = [ - line for line in original_lines + line for line in constraints_lines: if not any(line.startswith(key) for key in replace_keys) ] + [f"{k}=={async_rest_constraints[k]}" for k in replace_keys] From a9f35e7ba0fa8887da0378870c4758bae1a03053 Mon Sep 17 00:00:00 2001 From: Daniel Sanche Date: Tue, 17 Mar 2026 16:10:29 -0700 Subject: [PATCH 10/16] fixed syntax --- noxfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/noxfile.py b/noxfile.py index 92bf62b938..df62bd020e 100644 --- a/noxfile.py +++ b/noxfile.py @@ -381,7 +381,7 @@ def showcase_library( } # Replace async_rest constraints in final output. constraints = [ - line for line in constraints_lines: + line for line in constraints_lines if not any(line.startswith(key) for key in replace_keys) ] + [f"{k}=={async_rest_constraints[k]}" for k in replace_keys] From fb5c1c3a9593a80a957ab5aadc3093c05ed9aa56 Mon Sep 17 00:00:00 2001 From: Daniel Sanche Date: Tue, 17 Mar 2026 16:16:54 -0700 Subject: [PATCH 11/16] use generated async-rest constraints files --- .../testing/constraints-3.9-async-rest.txt.j2 | 25 +++++++++++ noxfile.py | 44 +++++++------------ .../testing/constraints-3.9-async-rest.txt | 13 ++++++ .../testing/constraints-3.9-async-rest.txt | 13 ++++++ 4 files changed, 66 insertions(+), 29 deletions(-) create mode 100644 gapic/templates/testing/constraints-3.9-async-rest.txt.j2 create mode 100644 tests/integration/goldens/redis/testing/constraints-3.9-async-rest.txt create mode 100644 tests/integration/goldens/redis_selective/testing/constraints-3.9-async-rest.txt diff --git a/gapic/templates/testing/constraints-3.9-async-rest.txt.j2 b/gapic/templates/testing/constraints-3.9-async-rest.txt.j2 new file mode 100644 index 0000000000..14520f3adb --- /dev/null +++ b/gapic/templates/testing/constraints-3.9-async-rest.txt.j2 @@ -0,0 +1,25 @@ +{% set rest_async_io_enabled = api.all_library_settings[api.naming.proto_package].python_settings.experimental_features.rest_async_io_enabled %} +{% if rest_async_io_enabled %} +# -*- coding: utf-8 -*- +{% from '_pypi_packages.j2' import pypi_packages %} +# This constraints file is used to check that lower bounds +# are correct in setup.py +# List all library dependencies and extras in this file, +# pinning their versions to their lower bounds. +# For example, if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0", +# then this file should have google-cloud-foo==1.14.0 +google-api-core==2.21.0 +google-auth==2.35.0 +# TODO(https://github.com/googleapis/gapic-generator-python/issues/2453) +# Add the minimum supported version of grpcio to constraints files +proto-plus==1.22.3 +protobuf==4.25.8 +{% for package_tuple, package_info in pypi_packages.items() %} +{# Quick check to make sure `package_info.package_name` is not the package being generated so we don't circularly include this package in its own constraints file. #} +{% if api.naming.warehouse_package_name != package_info.package_name %} +{% if api.requires_package(package_tuple) %} +{{ package_info.package_name }}=={{ package_info.lower_bound }} +{% endif %} +{% endif %} +{% endfor %} +{% endif %} \ No newline at end of file diff --git a/noxfile.py b/noxfile.py index df62bd020e..5fee5a847d 100644 --- a/noxfile.py +++ b/noxfile.py @@ -357,35 +357,21 @@ def showcase_library( constraints_path = str( f"{tmp_dir}/testing/constraints-{session.python}.txt" ) - if not rest_async_io_enabled: - # Install the library with a constraints file. - session.install("-e", tmp_dir, "-r", constraints_path) - else: - # Modify constraints file to support async_rest min constraints. - # TODO: Move into own contraints-async-rest.txt file once - # async-rest is fully supported - async_rest_constraints = { - "google-auth": "2.35.0", - "google-api-core": "2.21.0", - } - with open(constraints_path) as f: - constraints_lines = [ - line.strip() - for line in f - if line.strip() and not line.startswith("#") - ] - # Only modify dependencies in the original constraints file. - replace_keys = { - key for key in async_rest_constraints - if any(line.startswith(key) for line in constraints_lines) - } - # Replace async_rest constraints in final output. - constraints = [ - line for line in constraints_lines - if not any(line.startswith(key) for key in replace_keys) - ] + [f"{k}=={async_rest_constraints[k]}" for k in replace_keys] - - session.install("-e", f"{tmp_dir}[async_rest]", *constraints) + extras = "" + if rest_async_io_enabled: + async_rest_constraints_path = str( + f"{tmp_dir}/testing/constraints-3.9-async-rest.txt" + ) + if os.path.exists(async_rest_constraints_path): + # use async-rest constraints if available + constraints_path = async_rest_constraints_path + else: + session.log( + f"{async_rest_constraints_path} not found. Using base constraints file" + ) + extras = "[async_rest]" + + session.install("-e", f"{tmp_dir}{extras}", "-r", constraints_path) else: # The ads templates do not have constraints files. # See https://github.com/googleapis/gapic-generator-python/issues/1788 diff --git a/tests/integration/goldens/redis/testing/constraints-3.9-async-rest.txt b/tests/integration/goldens/redis/testing/constraints-3.9-async-rest.txt new file mode 100644 index 0000000000..ac3833d41b --- /dev/null +++ b/tests/integration/goldens/redis/testing/constraints-3.9-async-rest.txt @@ -0,0 +1,13 @@ +# -*- coding: utf-8 -*- +# This constraints file is used to check that lower bounds +# are correct in setup.py +# List all library dependencies and extras in this file, +# pinning their versions to their lower bounds. +# For example, if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0", +# then this file should have google-cloud-foo==1.14.0 +google-api-core==2.21.0 +google-auth==2.35.0 +# TODO(https://github.com/googleapis/gapic-generator-python/issues/2453) +# Add the minimum supported version of grpcio to constraints files +proto-plus==1.22.3 +protobuf==4.25.8 diff --git a/tests/integration/goldens/redis_selective/testing/constraints-3.9-async-rest.txt b/tests/integration/goldens/redis_selective/testing/constraints-3.9-async-rest.txt new file mode 100644 index 0000000000..ac3833d41b --- /dev/null +++ b/tests/integration/goldens/redis_selective/testing/constraints-3.9-async-rest.txt @@ -0,0 +1,13 @@ +# -*- coding: utf-8 -*- +# This constraints file is used to check that lower bounds +# are correct in setup.py +# List all library dependencies and extras in this file, +# pinning their versions to their lower bounds. +# For example, if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0", +# then this file should have google-cloud-foo==1.14.0 +google-api-core==2.21.0 +google-auth==2.35.0 +# TODO(https://github.com/googleapis/gapic-generator-python/issues/2453) +# Add the minimum supported version of grpcio to constraints files +proto-plus==1.22.3 +protobuf==4.25.8 From 6665b3607e6b9a7c79e127d04edae7bed7fb040a Mon Sep 17 00:00:00 2001 From: Daniel Sanche Date: Tue, 17 Mar 2026 16:19:17 -0700 Subject: [PATCH 12/16] remove hard-code to 3.9 in rest constraint --- noxfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/noxfile.py b/noxfile.py index 5fee5a847d..57d6ba010e 100644 --- a/noxfile.py +++ b/noxfile.py @@ -360,7 +360,7 @@ def showcase_library( extras = "" if rest_async_io_enabled: async_rest_constraints_path = str( - f"{tmp_dir}/testing/constraints-3.9-async-rest.txt" + f"{tmp_dir}/testing/constraints-{session.python}-async-rest.txt" ) if os.path.exists(async_rest_constraints_path): # use async-rest constraints if available From 096bc270564b6c1ab057b02b08883521239dcc1c Mon Sep 17 00:00:00 2001 From: Daniel Sanche Date: Tue, 17 Mar 2026 16:52:42 -0700 Subject: [PATCH 13/16] bump api_core requirements --- gapic/templates/setup.py.j2 | 2 +- gapic/templates/testing/constraints-3.9.txt.j2 | 2 +- tests/integration/goldens/asset/setup.py | 2 +- tests/integration/goldens/asset/testing/constraints-3.9.txt | 2 +- tests/integration/goldens/credentials/setup.py | 2 +- .../integration/goldens/credentials/testing/constraints-3.9.txt | 2 +- tests/integration/goldens/eventarc/setup.py | 2 +- tests/integration/goldens/eventarc/testing/constraints-3.9.txt | 2 +- tests/integration/goldens/logging/setup.py | 2 +- tests/integration/goldens/logging/testing/constraints-3.9.txt | 2 +- tests/integration/goldens/logging_internal/setup.py | 2 +- .../goldens/logging_internal/testing/constraints-3.9.txt | 2 +- tests/integration/goldens/redis/setup.py | 2 +- tests/integration/goldens/redis/testing/constraints-3.9.txt | 2 +- tests/integration/goldens/redis_selective/setup.py | 2 +- .../goldens/redis_selective/testing/constraints-3.9.txt | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/gapic/templates/setup.py.j2 b/gapic/templates/setup.py.j2 index 831f5d0f31..dcff94f973 100644 --- a/gapic/templates/setup.py.j2 +++ b/gapic/templates/setup.py.j2 @@ -33,7 +33,7 @@ else: release_status = "Development Status :: 5 - Production/Stable" dependencies = [ - "google-api-core[grpc] >= 2.11.0, <3.0.0", + "google-api-core[grpc] >= 2.17.1, <3.0.0", # Exclude incompatible versions of `google-auth` # See https://github.com/googleapis/google-cloud-python/issues/12364 "google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0", diff --git a/gapic/templates/testing/constraints-3.9.txt.j2 b/gapic/templates/testing/constraints-3.9.txt.j2 index 714c7f6599..079fb498e1 100644 --- a/gapic/templates/testing/constraints-3.9.txt.j2 +++ b/gapic/templates/testing/constraints-3.9.txt.j2 @@ -6,7 +6,7 @@ # pinning their versions to their lower bounds. # For example, if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0", # then this file should have google-cloud-foo==1.14.0 -google-api-core==2.11.0 +google-api-core==2.17.1 google-auth==2.14.1 # TODO(https://github.com/googleapis/gapic-generator-python/issues/2453) # Add the minimum supported version of grpcio to constraints files diff --git a/tests/integration/goldens/asset/setup.py b/tests/integration/goldens/asset/setup.py index 7f5523e3bf..165a48972f 100755 --- a/tests/integration/goldens/asset/setup.py +++ b/tests/integration/goldens/asset/setup.py @@ -39,7 +39,7 @@ release_status = "Development Status :: 5 - Production/Stable" dependencies = [ - "google-api-core[grpc] >= 2.11.0, <3.0.0", + "google-api-core[grpc] >= 2.17.1, <3.0.0", # Exclude incompatible versions of `google-auth` # See https://github.com/googleapis/google-cloud-python/issues/12364 "google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0", diff --git a/tests/integration/goldens/asset/testing/constraints-3.9.txt b/tests/integration/goldens/asset/testing/constraints-3.9.txt index 2fa2ea99c3..46c34a4d58 100755 --- a/tests/integration/goldens/asset/testing/constraints-3.9.txt +++ b/tests/integration/goldens/asset/testing/constraints-3.9.txt @@ -5,7 +5,7 @@ # pinning their versions to their lower bounds. # For example, if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0", # then this file should have google-cloud-foo==1.14.0 -google-api-core==2.11.0 +google-api-core==2.17.1 google-auth==2.14.1 # TODO(https://github.com/googleapis/gapic-generator-python/issues/2453) # Add the minimum supported version of grpcio to constraints files diff --git a/tests/integration/goldens/credentials/setup.py b/tests/integration/goldens/credentials/setup.py index 8da6aed1dd..37422f10cc 100755 --- a/tests/integration/goldens/credentials/setup.py +++ b/tests/integration/goldens/credentials/setup.py @@ -39,7 +39,7 @@ release_status = "Development Status :: 5 - Production/Stable" dependencies = [ - "google-api-core[grpc] >= 2.11.0, <3.0.0", + "google-api-core[grpc] >= 2.17.1, <3.0.0", # Exclude incompatible versions of `google-auth` # See https://github.com/googleapis/google-cloud-python/issues/12364 "google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0", diff --git a/tests/integration/goldens/credentials/testing/constraints-3.9.txt b/tests/integration/goldens/credentials/testing/constraints-3.9.txt index 17c7bcd34c..ddc098290e 100755 --- a/tests/integration/goldens/credentials/testing/constraints-3.9.txt +++ b/tests/integration/goldens/credentials/testing/constraints-3.9.txt @@ -5,7 +5,7 @@ # pinning their versions to their lower bounds. # For example, if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0", # then this file should have google-cloud-foo==1.14.0 -google-api-core==2.11.0 +google-api-core==2.17.1 google-auth==2.14.1 # TODO(https://github.com/googleapis/gapic-generator-python/issues/2453) # Add the minimum supported version of grpcio to constraints files diff --git a/tests/integration/goldens/eventarc/setup.py b/tests/integration/goldens/eventarc/setup.py index cbb2177568..946de9f043 100755 --- a/tests/integration/goldens/eventarc/setup.py +++ b/tests/integration/goldens/eventarc/setup.py @@ -39,7 +39,7 @@ release_status = "Development Status :: 5 - Production/Stable" dependencies = [ - "google-api-core[grpc] >= 2.11.0, <3.0.0", + "google-api-core[grpc] >= 2.17.1, <3.0.0", # Exclude incompatible versions of `google-auth` # See https://github.com/googleapis/google-cloud-python/issues/12364 "google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0", diff --git a/tests/integration/goldens/eventarc/testing/constraints-3.9.txt b/tests/integration/goldens/eventarc/testing/constraints-3.9.txt index 55ec665937..8c1fa6d2f3 100755 --- a/tests/integration/goldens/eventarc/testing/constraints-3.9.txt +++ b/tests/integration/goldens/eventarc/testing/constraints-3.9.txt @@ -5,7 +5,7 @@ # pinning their versions to their lower bounds. # For example, if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0", # then this file should have google-cloud-foo==1.14.0 -google-api-core==2.11.0 +google-api-core==2.17.1 google-auth==2.14.1 # TODO(https://github.com/googleapis/gapic-generator-python/issues/2453) # Add the minimum supported version of grpcio to constraints files diff --git a/tests/integration/goldens/logging/setup.py b/tests/integration/goldens/logging/setup.py index 0b99458443..2f1b079f1b 100755 --- a/tests/integration/goldens/logging/setup.py +++ b/tests/integration/goldens/logging/setup.py @@ -39,7 +39,7 @@ release_status = "Development Status :: 5 - Production/Stable" dependencies = [ - "google-api-core[grpc] >= 2.11.0, <3.0.0", + "google-api-core[grpc] >= 2.17.1, <3.0.0", # Exclude incompatible versions of `google-auth` # See https://github.com/googleapis/google-cloud-python/issues/12364 "google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0", diff --git a/tests/integration/goldens/logging/testing/constraints-3.9.txt b/tests/integration/goldens/logging/testing/constraints-3.9.txt index 17c7bcd34c..ddc098290e 100755 --- a/tests/integration/goldens/logging/testing/constraints-3.9.txt +++ b/tests/integration/goldens/logging/testing/constraints-3.9.txt @@ -5,7 +5,7 @@ # pinning their versions to their lower bounds. # For example, if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0", # then this file should have google-cloud-foo==1.14.0 -google-api-core==2.11.0 +google-api-core==2.17.1 google-auth==2.14.1 # TODO(https://github.com/googleapis/gapic-generator-python/issues/2453) # Add the minimum supported version of grpcio to constraints files diff --git a/tests/integration/goldens/logging_internal/setup.py b/tests/integration/goldens/logging_internal/setup.py index 0b99458443..2f1b079f1b 100755 --- a/tests/integration/goldens/logging_internal/setup.py +++ b/tests/integration/goldens/logging_internal/setup.py @@ -39,7 +39,7 @@ release_status = "Development Status :: 5 - Production/Stable" dependencies = [ - "google-api-core[grpc] >= 2.11.0, <3.0.0", + "google-api-core[grpc] >= 2.17.1, <3.0.0", # Exclude incompatible versions of `google-auth` # See https://github.com/googleapis/google-cloud-python/issues/12364 "google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0", diff --git a/tests/integration/goldens/logging_internal/testing/constraints-3.9.txt b/tests/integration/goldens/logging_internal/testing/constraints-3.9.txt index 17c7bcd34c..ddc098290e 100755 --- a/tests/integration/goldens/logging_internal/testing/constraints-3.9.txt +++ b/tests/integration/goldens/logging_internal/testing/constraints-3.9.txt @@ -5,7 +5,7 @@ # pinning their versions to their lower bounds. # For example, if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0", # then this file should have google-cloud-foo==1.14.0 -google-api-core==2.11.0 +google-api-core==2.17.1 google-auth==2.14.1 # TODO(https://github.com/googleapis/gapic-generator-python/issues/2453) # Add the minimum supported version of grpcio to constraints files diff --git a/tests/integration/goldens/redis/setup.py b/tests/integration/goldens/redis/setup.py index 2cf3926c8e..29648855db 100755 --- a/tests/integration/goldens/redis/setup.py +++ b/tests/integration/goldens/redis/setup.py @@ -39,7 +39,7 @@ release_status = "Development Status :: 5 - Production/Stable" dependencies = [ - "google-api-core[grpc] >= 2.11.0, <3.0.0", + "google-api-core[grpc] >= 2.17.1, <3.0.0", # Exclude incompatible versions of `google-auth` # See https://github.com/googleapis/google-cloud-python/issues/12364 "google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0", diff --git a/tests/integration/goldens/redis/testing/constraints-3.9.txt b/tests/integration/goldens/redis/testing/constraints-3.9.txt index 17c7bcd34c..ddc098290e 100755 --- a/tests/integration/goldens/redis/testing/constraints-3.9.txt +++ b/tests/integration/goldens/redis/testing/constraints-3.9.txt @@ -5,7 +5,7 @@ # pinning their versions to their lower bounds. # For example, if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0", # then this file should have google-cloud-foo==1.14.0 -google-api-core==2.11.0 +google-api-core==2.17.1 google-auth==2.14.1 # TODO(https://github.com/googleapis/gapic-generator-python/issues/2453) # Add the minimum supported version of grpcio to constraints files diff --git a/tests/integration/goldens/redis_selective/setup.py b/tests/integration/goldens/redis_selective/setup.py index 2cf3926c8e..29648855db 100755 --- a/tests/integration/goldens/redis_selective/setup.py +++ b/tests/integration/goldens/redis_selective/setup.py @@ -39,7 +39,7 @@ release_status = "Development Status :: 5 - Production/Stable" dependencies = [ - "google-api-core[grpc] >= 2.11.0, <3.0.0", + "google-api-core[grpc] >= 2.17.1, <3.0.0", # Exclude incompatible versions of `google-auth` # See https://github.com/googleapis/google-cloud-python/issues/12364 "google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0", diff --git a/tests/integration/goldens/redis_selective/testing/constraints-3.9.txt b/tests/integration/goldens/redis_selective/testing/constraints-3.9.txt index 17c7bcd34c..ddc098290e 100755 --- a/tests/integration/goldens/redis_selective/testing/constraints-3.9.txt +++ b/tests/integration/goldens/redis_selective/testing/constraints-3.9.txt @@ -5,7 +5,7 @@ # pinning their versions to their lower bounds. # For example, if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0", # then this file should have google-cloud-foo==1.14.0 -google-api-core==2.11.0 +google-api-core==2.17.1 google-auth==2.14.1 # TODO(https://github.com/googleapis/gapic-generator-python/issues/2453) # Add the minimum supported version of grpcio to constraints files From 31a2913c642ab940c82742b5798dc86d8e0aef10 Mon Sep 17 00:00:00 2001 From: Daniel Sanche Date: Tue, 17 Mar 2026 17:03:09 -0700 Subject: [PATCH 14/16] add grpc constraint --- gapic/templates/testing/constraints-3.9-async-rest.txt.j2 | 3 +-- gapic/templates/testing/constraints-3.9.txt.j2 | 3 +-- tests/integration/goldens/asset/testing/constraints-3.9.txt | 3 +-- .../goldens/credentials/testing/constraints-3.9.txt | 3 +-- tests/integration/goldens/eventarc/testing/constraints-3.9.txt | 3 +-- tests/integration/goldens/logging/testing/constraints-3.9.txt | 3 +-- .../goldens/logging_internal/testing/constraints-3.9.txt | 3 +-- .../goldens/redis/testing/constraints-3.9-async-rest.txt | 3 +-- tests/integration/goldens/redis/testing/constraints-3.9.txt | 3 +-- .../redis_selective/testing/constraints-3.9-async-rest.txt | 3 +-- .../goldens/redis_selective/testing/constraints-3.9.txt | 3 +-- 11 files changed, 11 insertions(+), 22 deletions(-) diff --git a/gapic/templates/testing/constraints-3.9-async-rest.txt.j2 b/gapic/templates/testing/constraints-3.9-async-rest.txt.j2 index 14520f3adb..f98c9f065f 100644 --- a/gapic/templates/testing/constraints-3.9-async-rest.txt.j2 +++ b/gapic/templates/testing/constraints-3.9-async-rest.txt.j2 @@ -10,8 +10,7 @@ # then this file should have google-cloud-foo==1.14.0 google-api-core==2.21.0 google-auth==2.35.0 -# TODO(https://github.com/googleapis/gapic-generator-python/issues/2453) -# Add the minimum supported version of grpcio to constraints files +grpcio==1.33.2 proto-plus==1.22.3 protobuf==4.25.8 {% for package_tuple, package_info in pypi_packages.items() %} diff --git a/gapic/templates/testing/constraints-3.9.txt.j2 b/gapic/templates/testing/constraints-3.9.txt.j2 index 079fb498e1..f0cbe61ccb 100644 --- a/gapic/templates/testing/constraints-3.9.txt.j2 +++ b/gapic/templates/testing/constraints-3.9.txt.j2 @@ -8,8 +8,7 @@ # then this file should have google-cloud-foo==1.14.0 google-api-core==2.17.1 google-auth==2.14.1 -# TODO(https://github.com/googleapis/gapic-generator-python/issues/2453) -# Add the minimum supported version of grpcio to constraints files +grpcio==1.33.2 proto-plus==1.22.3 protobuf==4.25.8 {% for package_tuple, package_info in pypi_packages.items() %} diff --git a/tests/integration/goldens/asset/testing/constraints-3.9.txt b/tests/integration/goldens/asset/testing/constraints-3.9.txt index 46c34a4d58..e0d18b2155 100755 --- a/tests/integration/goldens/asset/testing/constraints-3.9.txt +++ b/tests/integration/goldens/asset/testing/constraints-3.9.txt @@ -7,8 +7,7 @@ # then this file should have google-cloud-foo==1.14.0 google-api-core==2.17.1 google-auth==2.14.1 -# TODO(https://github.com/googleapis/gapic-generator-python/issues/2453) -# Add the minimum supported version of grpcio to constraints files +grpcio==1.33.2 proto-plus==1.22.3 protobuf==4.25.8 google-cloud-access-context-manager==0.2.0 diff --git a/tests/integration/goldens/credentials/testing/constraints-3.9.txt b/tests/integration/goldens/credentials/testing/constraints-3.9.txt index ddc098290e..7188619ee7 100755 --- a/tests/integration/goldens/credentials/testing/constraints-3.9.txt +++ b/tests/integration/goldens/credentials/testing/constraints-3.9.txt @@ -7,7 +7,6 @@ # then this file should have google-cloud-foo==1.14.0 google-api-core==2.17.1 google-auth==2.14.1 -# TODO(https://github.com/googleapis/gapic-generator-python/issues/2453) -# Add the minimum supported version of grpcio to constraints files +grpcio==1.33.2 proto-plus==1.22.3 protobuf==4.25.8 diff --git a/tests/integration/goldens/eventarc/testing/constraints-3.9.txt b/tests/integration/goldens/eventarc/testing/constraints-3.9.txt index 8c1fa6d2f3..1a292235f9 100755 --- a/tests/integration/goldens/eventarc/testing/constraints-3.9.txt +++ b/tests/integration/goldens/eventarc/testing/constraints-3.9.txt @@ -7,8 +7,7 @@ # then this file should have google-cloud-foo==1.14.0 google-api-core==2.17.1 google-auth==2.14.1 -# TODO(https://github.com/googleapis/gapic-generator-python/issues/2453) -# Add the minimum supported version of grpcio to constraints files +grpcio==1.33.2 proto-plus==1.22.3 protobuf==4.25.8 grpc-google-iam-v1==0.14.0 diff --git a/tests/integration/goldens/logging/testing/constraints-3.9.txt b/tests/integration/goldens/logging/testing/constraints-3.9.txt index ddc098290e..7188619ee7 100755 --- a/tests/integration/goldens/logging/testing/constraints-3.9.txt +++ b/tests/integration/goldens/logging/testing/constraints-3.9.txt @@ -7,7 +7,6 @@ # then this file should have google-cloud-foo==1.14.0 google-api-core==2.17.1 google-auth==2.14.1 -# TODO(https://github.com/googleapis/gapic-generator-python/issues/2453) -# Add the minimum supported version of grpcio to constraints files +grpcio==1.33.2 proto-plus==1.22.3 protobuf==4.25.8 diff --git a/tests/integration/goldens/logging_internal/testing/constraints-3.9.txt b/tests/integration/goldens/logging_internal/testing/constraints-3.9.txt index ddc098290e..7188619ee7 100755 --- a/tests/integration/goldens/logging_internal/testing/constraints-3.9.txt +++ b/tests/integration/goldens/logging_internal/testing/constraints-3.9.txt @@ -7,7 +7,6 @@ # then this file should have google-cloud-foo==1.14.0 google-api-core==2.17.1 google-auth==2.14.1 -# TODO(https://github.com/googleapis/gapic-generator-python/issues/2453) -# Add the minimum supported version of grpcio to constraints files +grpcio==1.33.2 proto-plus==1.22.3 protobuf==4.25.8 diff --git a/tests/integration/goldens/redis/testing/constraints-3.9-async-rest.txt b/tests/integration/goldens/redis/testing/constraints-3.9-async-rest.txt index ac3833d41b..8f461117e0 100644 --- a/tests/integration/goldens/redis/testing/constraints-3.9-async-rest.txt +++ b/tests/integration/goldens/redis/testing/constraints-3.9-async-rest.txt @@ -7,7 +7,6 @@ # then this file should have google-cloud-foo==1.14.0 google-api-core==2.21.0 google-auth==2.35.0 -# TODO(https://github.com/googleapis/gapic-generator-python/issues/2453) -# Add the minimum supported version of grpcio to constraints files +grpcio==1.33.2 proto-plus==1.22.3 protobuf==4.25.8 diff --git a/tests/integration/goldens/redis/testing/constraints-3.9.txt b/tests/integration/goldens/redis/testing/constraints-3.9.txt index ddc098290e..7188619ee7 100755 --- a/tests/integration/goldens/redis/testing/constraints-3.9.txt +++ b/tests/integration/goldens/redis/testing/constraints-3.9.txt @@ -7,7 +7,6 @@ # then this file should have google-cloud-foo==1.14.0 google-api-core==2.17.1 google-auth==2.14.1 -# TODO(https://github.com/googleapis/gapic-generator-python/issues/2453) -# Add the minimum supported version of grpcio to constraints files +grpcio==1.33.2 proto-plus==1.22.3 protobuf==4.25.8 diff --git a/tests/integration/goldens/redis_selective/testing/constraints-3.9-async-rest.txt b/tests/integration/goldens/redis_selective/testing/constraints-3.9-async-rest.txt index ac3833d41b..8f461117e0 100644 --- a/tests/integration/goldens/redis_selective/testing/constraints-3.9-async-rest.txt +++ b/tests/integration/goldens/redis_selective/testing/constraints-3.9-async-rest.txt @@ -7,7 +7,6 @@ # then this file should have google-cloud-foo==1.14.0 google-api-core==2.21.0 google-auth==2.35.0 -# TODO(https://github.com/googleapis/gapic-generator-python/issues/2453) -# Add the minimum supported version of grpcio to constraints files +grpcio==1.33.2 proto-plus==1.22.3 protobuf==4.25.8 diff --git a/tests/integration/goldens/redis_selective/testing/constraints-3.9.txt b/tests/integration/goldens/redis_selective/testing/constraints-3.9.txt index ddc098290e..7188619ee7 100755 --- a/tests/integration/goldens/redis_selective/testing/constraints-3.9.txt +++ b/tests/integration/goldens/redis_selective/testing/constraints-3.9.txt @@ -7,7 +7,6 @@ # then this file should have google-cloud-foo==1.14.0 google-api-core==2.17.1 google-auth==2.14.1 -# TODO(https://github.com/googleapis/gapic-generator-python/issues/2453) -# Add the minimum supported version of grpcio to constraints files +grpcio==1.33.2 proto-plus==1.22.3 protobuf==4.25.8 From 00a573af51efa4f597a300e3aba181351d985a92 Mon Sep 17 00:00:00 2001 From: Daniel Sanche Date: Tue, 17 Mar 2026 17:22:04 -0700 Subject: [PATCH 15/16] updated grpcio constraint --- gapic/templates/testing/constraints-3.9-async-rest.txt.j2 | 6 +++++- gapic/templates/testing/constraints-3.9.txt.j2 | 6 +++++- tests/integration/goldens/asset/testing/constraints-3.9.txt | 2 +- .../goldens/credentials/testing/constraints-3.9.txt | 2 +- .../goldens/eventarc/testing/constraints-3.9.txt | 2 +- .../integration/goldens/logging/testing/constraints-3.9.txt | 2 +- .../goldens/logging_internal/testing/constraints-3.9.txt | 2 +- .../goldens/redis/testing/constraints-3.9-async-rest.txt | 2 +- tests/integration/goldens/redis/testing/constraints-3.9.txt | 2 +- .../redis_selective/testing/constraints-3.9-async-rest.txt | 2 +- .../goldens/redis_selective/testing/constraints-3.9.txt | 2 +- 11 files changed, 19 insertions(+), 11 deletions(-) diff --git a/gapic/templates/testing/constraints-3.9-async-rest.txt.j2 b/gapic/templates/testing/constraints-3.9-async-rest.txt.j2 index f98c9f065f..940b2ad37f 100644 --- a/gapic/templates/testing/constraints-3.9-async-rest.txt.j2 +++ b/gapic/templates/testing/constraints-3.9-async-rest.txt.j2 @@ -10,7 +10,11 @@ # then this file should have google-cloud-foo==1.14.0 google-api-core==2.21.0 google-auth==2.35.0 -grpcio==1.33.2 +{% if api.requires_package(("google", "iam", "v1")) %} +grpcio==1.44.0 # from grpc-google-iam-v1 +{% else %} +grpcio==1.33.2 # from google-api-core +{% endif %} proto-plus==1.22.3 protobuf==4.25.8 {% for package_tuple, package_info in pypi_packages.items() %} diff --git a/gapic/templates/testing/constraints-3.9.txt.j2 b/gapic/templates/testing/constraints-3.9.txt.j2 index f0cbe61ccb..4169a57db5 100644 --- a/gapic/templates/testing/constraints-3.9.txt.j2 +++ b/gapic/templates/testing/constraints-3.9.txt.j2 @@ -8,7 +8,11 @@ # then this file should have google-cloud-foo==1.14.0 google-api-core==2.17.1 google-auth==2.14.1 -grpcio==1.33.2 +{% if api.requires_package(("google", "iam", "v1")) %} +grpcio==1.44.0 # from grpc-google-iam-v1 +{% else %} +grpcio==1.33.2 # from google-api-core +{% endif %} proto-plus==1.22.3 protobuf==4.25.8 {% for package_tuple, package_info in pypi_packages.items() %} diff --git a/tests/integration/goldens/asset/testing/constraints-3.9.txt b/tests/integration/goldens/asset/testing/constraints-3.9.txt index e0d18b2155..8333ac3bda 100755 --- a/tests/integration/goldens/asset/testing/constraints-3.9.txt +++ b/tests/integration/goldens/asset/testing/constraints-3.9.txt @@ -7,7 +7,7 @@ # then this file should have google-cloud-foo==1.14.0 google-api-core==2.17.1 google-auth==2.14.1 -grpcio==1.33.2 +grpcio==1.44.0 # from grpc-google-iam-v1 proto-plus==1.22.3 protobuf==4.25.8 google-cloud-access-context-manager==0.2.0 diff --git a/tests/integration/goldens/credentials/testing/constraints-3.9.txt b/tests/integration/goldens/credentials/testing/constraints-3.9.txt index 7188619ee7..d5ce286e09 100755 --- a/tests/integration/goldens/credentials/testing/constraints-3.9.txt +++ b/tests/integration/goldens/credentials/testing/constraints-3.9.txt @@ -7,6 +7,6 @@ # then this file should have google-cloud-foo==1.14.0 google-api-core==2.17.1 google-auth==2.14.1 -grpcio==1.33.2 +grpcio==1.33.2 # from google-api-core proto-plus==1.22.3 protobuf==4.25.8 diff --git a/tests/integration/goldens/eventarc/testing/constraints-3.9.txt b/tests/integration/goldens/eventarc/testing/constraints-3.9.txt index 1a292235f9..faecbe2655 100755 --- a/tests/integration/goldens/eventarc/testing/constraints-3.9.txt +++ b/tests/integration/goldens/eventarc/testing/constraints-3.9.txt @@ -7,7 +7,7 @@ # then this file should have google-cloud-foo==1.14.0 google-api-core==2.17.1 google-auth==2.14.1 -grpcio==1.33.2 +grpcio==1.44.0 # from grpc-google-iam-v1 proto-plus==1.22.3 protobuf==4.25.8 grpc-google-iam-v1==0.14.0 diff --git a/tests/integration/goldens/logging/testing/constraints-3.9.txt b/tests/integration/goldens/logging/testing/constraints-3.9.txt index 7188619ee7..d5ce286e09 100755 --- a/tests/integration/goldens/logging/testing/constraints-3.9.txt +++ b/tests/integration/goldens/logging/testing/constraints-3.9.txt @@ -7,6 +7,6 @@ # then this file should have google-cloud-foo==1.14.0 google-api-core==2.17.1 google-auth==2.14.1 -grpcio==1.33.2 +grpcio==1.33.2 # from google-api-core proto-plus==1.22.3 protobuf==4.25.8 diff --git a/tests/integration/goldens/logging_internal/testing/constraints-3.9.txt b/tests/integration/goldens/logging_internal/testing/constraints-3.9.txt index 7188619ee7..d5ce286e09 100755 --- a/tests/integration/goldens/logging_internal/testing/constraints-3.9.txt +++ b/tests/integration/goldens/logging_internal/testing/constraints-3.9.txt @@ -7,6 +7,6 @@ # then this file should have google-cloud-foo==1.14.0 google-api-core==2.17.1 google-auth==2.14.1 -grpcio==1.33.2 +grpcio==1.33.2 # from google-api-core proto-plus==1.22.3 protobuf==4.25.8 diff --git a/tests/integration/goldens/redis/testing/constraints-3.9-async-rest.txt b/tests/integration/goldens/redis/testing/constraints-3.9-async-rest.txt index 8f461117e0..0845245d47 100644 --- a/tests/integration/goldens/redis/testing/constraints-3.9-async-rest.txt +++ b/tests/integration/goldens/redis/testing/constraints-3.9-async-rest.txt @@ -7,6 +7,6 @@ # then this file should have google-cloud-foo==1.14.0 google-api-core==2.21.0 google-auth==2.35.0 -grpcio==1.33.2 +grpcio==1.33.2 # from google-api-core proto-plus==1.22.3 protobuf==4.25.8 diff --git a/tests/integration/goldens/redis/testing/constraints-3.9.txt b/tests/integration/goldens/redis/testing/constraints-3.9.txt index 7188619ee7..d5ce286e09 100755 --- a/tests/integration/goldens/redis/testing/constraints-3.9.txt +++ b/tests/integration/goldens/redis/testing/constraints-3.9.txt @@ -7,6 +7,6 @@ # then this file should have google-cloud-foo==1.14.0 google-api-core==2.17.1 google-auth==2.14.1 -grpcio==1.33.2 +grpcio==1.33.2 # from google-api-core proto-plus==1.22.3 protobuf==4.25.8 diff --git a/tests/integration/goldens/redis_selective/testing/constraints-3.9-async-rest.txt b/tests/integration/goldens/redis_selective/testing/constraints-3.9-async-rest.txt index 8f461117e0..0845245d47 100644 --- a/tests/integration/goldens/redis_selective/testing/constraints-3.9-async-rest.txt +++ b/tests/integration/goldens/redis_selective/testing/constraints-3.9-async-rest.txt @@ -7,6 +7,6 @@ # then this file should have google-cloud-foo==1.14.0 google-api-core==2.21.0 google-auth==2.35.0 -grpcio==1.33.2 +grpcio==1.33.2 # from google-api-core proto-plus==1.22.3 protobuf==4.25.8 diff --git a/tests/integration/goldens/redis_selective/testing/constraints-3.9.txt b/tests/integration/goldens/redis_selective/testing/constraints-3.9.txt index 7188619ee7..d5ce286e09 100755 --- a/tests/integration/goldens/redis_selective/testing/constraints-3.9.txt +++ b/tests/integration/goldens/redis_selective/testing/constraints-3.9.txt @@ -7,6 +7,6 @@ # then this file should have google-cloud-foo==1.14.0 google-api-core==2.17.1 google-auth==2.14.1 -grpcio==1.33.2 +grpcio==1.33.2 # from google-api-core proto-plus==1.22.3 protobuf==4.25.8 From aa96b40fbbf8fb2d9a75dc89aa4b4d5612fd1d0f Mon Sep 17 00:00:00 2001 From: Daniel Sanche Date: Tue, 17 Mar 2026 18:05:39 -0700 Subject: [PATCH 16/16] use higher grpcio for fragment tests --- gapic/templates/testing/constraints-3.9-async-rest.txt.j2 | 2 +- gapic/templates/testing/constraints-3.9.txt.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gapic/templates/testing/constraints-3.9-async-rest.txt.j2 b/gapic/templates/testing/constraints-3.9-async-rest.txt.j2 index 940b2ad37f..96b0ff860e 100644 --- a/gapic/templates/testing/constraints-3.9-async-rest.txt.j2 +++ b/gapic/templates/testing/constraints-3.9-async-rest.txt.j2 @@ -10,7 +10,7 @@ # then this file should have google-cloud-foo==1.14.0 google-api-core==2.21.0 google-auth==2.35.0 -{% if api.requires_package(("google", "iam", "v1")) %} +{% if api.requires_package(("google", "iam", "v1")) or api.naming.warehouse_package_name == 'google-fragment' %} grpcio==1.44.0 # from grpc-google-iam-v1 {% else %} grpcio==1.33.2 # from google-api-core diff --git a/gapic/templates/testing/constraints-3.9.txt.j2 b/gapic/templates/testing/constraints-3.9.txt.j2 index 4169a57db5..f2d6fa3f6a 100644 --- a/gapic/templates/testing/constraints-3.9.txt.j2 +++ b/gapic/templates/testing/constraints-3.9.txt.j2 @@ -8,7 +8,7 @@ # then this file should have google-cloud-foo==1.14.0 google-api-core==2.17.1 google-auth==2.14.1 -{% if api.requires_package(("google", "iam", "v1")) %} +{% if api.requires_package(("google", "iam", "v1")) or api.naming.warehouse_package_name == 'google-fragment' %} grpcio==1.44.0 # from grpc-google-iam-v1 {% else %} grpcio==1.33.2 # from google-api-core