Skip to content

Commit bb2d557

Browse files
authored
fix: allow Protobuf 6.x (#2352)
1 parent 44d75a8 commit bb2d557

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

gapic/templates/setup.py.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ dependencies = [
4040
"proto-plus >= 1.22.3, <2.0.0",
4141
"proto-plus >= 1.25.0, <2.0.0; python_version >= '3.13'",
4242
{# Explicitly exclude protobuf versions mentioned in https://cloud.google.com/support/bulletins#GCP-2022-019 #}
43-
"protobuf>=3.20.2,<6.0.0,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5",
43+
"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",
4444
{% for package_tuple, package_info in pypi_packages.items() %}
4545
{# Quick check to make sure the package is different from this setup.py #}
4646
{% if api.naming.warehouse_package_name != package_info.package_name %}

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
# https://jinja.palletsprojects.com/en/3.0.x/templates/#jinja-filters.map
3636
# https://jinja.palletsprojects.com/en/2.11.x/changelog/#version-2-11-0
3737
"jinja2 >= 2.11",
38-
"protobuf>=3.20.2,<6.0.0,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5",
38+
"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",
3939
"pypandoc >= 1.4",
4040
"PyYAML >= 5.1.1",
4141
"grpc-google-iam-v1 >= 0.14.0, < 1.0.0",

tests/integration/goldens/asset/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0",
4646
"proto-plus >= 1.22.3, <2.0.0",
4747
"proto-plus >= 1.25.0, <2.0.0; python_version >= '3.13'",
48-
"protobuf>=3.20.2,<6.0.0,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5",
48+
"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",
4949
"google-cloud-access-context-manager >= 0.1.2, <1.0.0",
5050
"google-cloud-os-config >= 1.0.0, <2.0.0",
5151
"grpc-google-iam-v1 >= 0.14.0, <1.0.0",

tests/integration/goldens/credentials/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0",
4646
"proto-plus >= 1.22.3, <2.0.0",
4747
"proto-plus >= 1.25.0, <2.0.0; python_version >= '3.13'",
48-
"protobuf>=3.20.2,<6.0.0,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5",
48+
"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",
4949
]
5050
extras = {
5151
}

tests/integration/goldens/eventarc/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0",
4646
"proto-plus >= 1.22.3, <2.0.0",
4747
"proto-plus >= 1.25.0, <2.0.0; python_version >= '3.13'",
48-
"protobuf>=3.20.2,<6.0.0,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5",
48+
"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",
4949
"grpc-google-iam-v1 >= 0.14.0, <1.0.0",
5050
]
5151
extras = {

tests/integration/goldens/logging/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0",
4646
"proto-plus >= 1.22.3, <2.0.0",
4747
"proto-plus >= 1.25.0, <2.0.0; python_version >= '3.13'",
48-
"protobuf>=3.20.2,<6.0.0,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5",
48+
"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",
4949
]
5050
extras = {
5151
}

tests/integration/goldens/logging_internal/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0",
4646
"proto-plus >= 1.22.3, <2.0.0",
4747
"proto-plus >= 1.25.0, <2.0.0; python_version >= '3.13'",
48-
"protobuf>=3.20.2,<6.0.0,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5",
48+
"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",
4949
]
5050
extras = {
5151
}

tests/integration/goldens/redis/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0",
4646
"proto-plus >= 1.22.3, <2.0.0",
4747
"proto-plus >= 1.25.0, <2.0.0; python_version >= '3.13'",
48-
"protobuf>=3.20.2,<6.0.0,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5",
48+
"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",
4949
]
5050
extras = {
5151
"async_rest": [

tests/integration/goldens/redis_selective/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0",
4646
"proto-plus >= 1.22.3, <2.0.0",
4747
"proto-plus >= 1.25.0, <2.0.0; python_version >= '3.13'",
48-
"protobuf>=3.20.2,<6.0.0,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5",
48+
"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",
4949
]
5050
extras = {
5151
"async_rest": [

0 commit comments

Comments
 (0)