Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit b5dd713

Browse files
committed
add upper ranges
1 parent 312769f commit b5dd713

File tree

8 files changed

+24
-24
lines changed

8 files changed

+24
-24
lines changed

gapic/templates/setup.py.j2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ dependencies = [
4242
"proto-plus >= 1.22.3, <2.0.0",
4343
"proto-plus >= 1.25.0, <2.0.0; python_version >= '3.13'",
4444
{# Explicitly exclude protobuf versions mentioned in https://cloud.google.com/support/bulletins#GCP-2022-019 #}
45-
"protobuf>=3.20.2; python_version == '3.7'",
46-
"protobuf>=4.21.6; python_version == '3.8'",
47-
"protobuf>=5.0.0; python_version == '3.9'",
45+
"protobuf>=3.20.2,<7.0.0,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5; python_version == '3.7'",
46+
"protobuf>=4.21.6,<7.0.0; python_version == '3.8'",
47+
"protobuf>=5.0.0,<7.0.0; python_version == '3.9'",
4848
"protobuf>=6.0.0,<7.0.0; python_version >= '3.10'",
4949
{% for package_tuple, package_info in pypi_packages.items() %}
5050
{# 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. #}

tests/integration/goldens/asset/setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@
4747
"grpcio >= 1.75.1, < 2.0.0; python_version >= '3.14'",
4848
"proto-plus >= 1.22.3, <2.0.0",
4949
"proto-plus >= 1.25.0, <2.0.0; python_version >= '3.13'",
50-
"protobuf>=3.20.2; python_version == '3.7'",
51-
"protobuf>=4.21.6; python_version == '3.8'",
52-
"protobuf>=5.0.0; python_version == '3.9'",
50+
"protobuf>=3.20.2,<7.0.0,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5; python_version == '3.7'",
51+
"protobuf>=4.21.6,<7.0.0; python_version == '3.8'",
52+
"protobuf>=5.0.0,<7.0.0; python_version == '3.9'",
5353
"protobuf>=6.0.0,<7.0.0; python_version >= '3.10'",
5454
"google-cloud-access-context-manager >= 0.1.2, <1.0.0",
5555
"google-cloud-os-config >= 1.0.0, <2.0.0",

tests/integration/goldens/credentials/setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@
4747
"grpcio >= 1.75.1, < 2.0.0; python_version >= '3.14'",
4848
"proto-plus >= 1.22.3, <2.0.0",
4949
"proto-plus >= 1.25.0, <2.0.0; python_version >= '3.13'",
50-
"protobuf>=3.20.2; python_version == '3.7'",
51-
"protobuf>=4.21.6; python_version == '3.8'",
52-
"protobuf>=5.0.0; python_version == '3.9'",
50+
"protobuf>=3.20.2,<7.0.0,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5; python_version == '3.7'",
51+
"protobuf>=4.21.6,<7.0.0; python_version == '3.8'",
52+
"protobuf>=5.0.0,<7.0.0; python_version == '3.9'",
5353
"protobuf>=6.0.0,<7.0.0; python_version >= '3.10'",
5454
]
5555
extras = {

tests/integration/goldens/eventarc/setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@
4747
"grpcio >= 1.75.1, < 2.0.0; python_version >= '3.14'",
4848
"proto-plus >= 1.22.3, <2.0.0",
4949
"proto-plus >= 1.25.0, <2.0.0; python_version >= '3.13'",
50-
"protobuf>=3.20.2; python_version == '3.7'",
51-
"protobuf>=4.21.6; python_version == '3.8'",
52-
"protobuf>=5.0.0; python_version == '3.9'",
50+
"protobuf>=3.20.2,<7.0.0,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5; python_version == '3.7'",
51+
"protobuf>=4.21.6,<7.0.0; python_version == '3.8'",
52+
"protobuf>=5.0.0,<7.0.0; python_version == '3.9'",
5353
"protobuf>=6.0.0,<7.0.0; python_version >= '3.10'",
5454
"grpc-google-iam-v1 >= 0.14.0, <1.0.0",
5555
]

tests/integration/goldens/logging/setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@
4747
"grpcio >= 1.75.1, < 2.0.0; python_version >= '3.14'",
4848
"proto-plus >= 1.22.3, <2.0.0",
4949
"proto-plus >= 1.25.0, <2.0.0; python_version >= '3.13'",
50-
"protobuf>=3.20.2; python_version == '3.7'",
51-
"protobuf>=4.21.6; python_version == '3.8'",
52-
"protobuf>=5.0.0; python_version == '3.9'",
50+
"protobuf>=3.20.2,<7.0.0,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5; python_version == '3.7'",
51+
"protobuf>=4.21.6,<7.0.0; python_version == '3.8'",
52+
"protobuf>=5.0.0,<7.0.0; python_version == '3.9'",
5353
"protobuf>=6.0.0,<7.0.0; python_version >= '3.10'",
5454
]
5555
extras = {

tests/integration/goldens/logging_internal/setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@
4747
"grpcio >= 1.75.1, < 2.0.0; python_version >= '3.14'",
4848
"proto-plus >= 1.22.3, <2.0.0",
4949
"proto-plus >= 1.25.0, <2.0.0; python_version >= '3.13'",
50-
"protobuf>=3.20.2; python_version == '3.7'",
51-
"protobuf>=4.21.6; python_version == '3.8'",
52-
"protobuf>=5.0.0; python_version == '3.9'",
50+
"protobuf>=3.20.2,<7.0.0,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5; python_version == '3.7'",
51+
"protobuf>=4.21.6,<7.0.0; python_version == '3.8'",
52+
"protobuf>=5.0.0,<7.0.0; python_version == '3.9'",
5353
"protobuf>=6.0.0,<7.0.0; python_version >= '3.10'",
5454
]
5555
extras = {

tests/integration/goldens/redis/setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@
4747
"grpcio >= 1.75.1, < 2.0.0; python_version >= '3.14'",
4848
"proto-plus >= 1.22.3, <2.0.0",
4949
"proto-plus >= 1.25.0, <2.0.0; python_version >= '3.13'",
50-
"protobuf>=3.20.2; python_version == '3.7'",
51-
"protobuf>=4.21.6; python_version == '3.8'",
52-
"protobuf>=5.0.0; python_version == '3.9'",
50+
"protobuf>=3.20.2,<7.0.0,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5; python_version == '3.7'",
51+
"protobuf>=4.21.6,<7.0.0; python_version == '3.8'",
52+
"protobuf>=5.0.0,<7.0.0; python_version == '3.9'",
5353
"protobuf>=6.0.0,<7.0.0; python_version >= '3.10'",
5454
]
5555
extras = {

tests/integration/goldens/redis_selective/setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@
4747
"grpcio >= 1.75.1, < 2.0.0; python_version >= '3.14'",
4848
"proto-plus >= 1.22.3, <2.0.0",
4949
"proto-plus >= 1.25.0, <2.0.0; python_version >= '3.13'",
50-
"protobuf>=3.20.2; python_version == '3.7'",
51-
"protobuf>=4.21.6; python_version == '3.8'",
52-
"protobuf>=5.0.0; python_version == '3.9'",
50+
"protobuf>=3.20.2,<7.0.0,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5; python_version == '3.7'",
51+
"protobuf>=4.21.6,<7.0.0; python_version == '3.8'",
52+
"protobuf>=5.0.0,<7.0.0; python_version == '3.9'",
5353
"protobuf>=6.0.0,<7.0.0; python_version >= '3.10'",
5454
]
5555
extras = {

0 commit comments

Comments
 (0)