Skip to content

Commit ccf132f

Browse files
authored
fix: require grpcio >= 1.75.1 for Python 3.14 (#2452)
1 parent dcc7879 commit ccf132f

File tree

68 files changed

+120
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+120
-0
lines changed

gapic/templates/setup.py.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ dependencies = [
3737
# Exclude incompatible versions of `google-auth`
3838
# See https://github.com/googleapis/google-cloud-python/issues/12364
3939
"google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0",
40+
"grpcio >= 1.33.2, < 2.0.0",
41+
"grpcio >= 1.75.1, < 2.0.0; python_version >= '3.14'",
4042
"proto-plus >= 1.22.3, <2.0.0",
4143
"proto-plus >= 1.25.0, <2.0.0; python_version >= '3.13'",
4244
{# Explicitly exclude protobuf versions mentioned in https://cloud.google.com/support/bulletins#GCP-2022-019 #}

gapic/templates/testing/_default_constraints.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# This constraints file is required for unit tests.
33
# List all library dependencies and extras in this file.
44
google-api-core
5+
google-auth
6+
grpcio
57
proto-plus
68
protobuf
79
{% for package_tuple, package_info in pypi_packages.items() %}

gapic/templates/testing/constraints-3.13.txt.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
# Then this file should have google-cloud-foo>=1
99
google-api-core>=2
1010
google-auth>=2
11+
grpcio>=1
1112
proto-plus>=1
1213
protobuf>=6
1314
{% for package_tuple, package_info in pypi_packages.items() %}

gapic/templates/testing/constraints-3.14.txt.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
# Then this file should have google-cloud-foo>=1
99
google-api-core>=2
1010
google-auth>=2
11+
grpcio>=1
1112
proto-plus>=1
1213
protobuf>=6
1314
{% for package_tuple, package_info in pypi_packages.items() %}

gapic/templates/testing/constraints-3.7.txt.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
# Then this file should have google-cloud-foo==1.14.0
88
google-api-core==1.34.1
99
google-auth==2.14.1
10+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2453)
11+
# Add the minimum supported version of grpcio to constraints files
1012
proto-plus==1.22.3
1113
protobuf==3.20.2
1214
{% for package_tuple, package_info in pypi_packages.items() %}

tests/integration/goldens/asset/setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343
# Exclude incompatible versions of `google-auth`
4444
# See https://github.com/googleapis/google-cloud-python/issues/12364
4545
"google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0",
46+
"grpcio >= 1.33.2, < 2.0.0",
47+
"grpcio >= 1.75.1, < 2.0.0; python_version >= '3.14'",
4648
"proto-plus >= 1.22.3, <2.0.0",
4749
"proto-plus >= 1.25.0, <2.0.0; python_version >= '3.13'",
4850
"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",

tests/integration/goldens/asset/testing/constraints-3.10.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# This constraints file is required for unit tests.
33
# List all library dependencies and extras in this file.
44
google-api-core
5+
google-auth
6+
grpcio
57
proto-plus
68
protobuf
79
google-cloud-access-context-manager

tests/integration/goldens/asset/testing/constraints-3.11.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# This constraints file is required for unit tests.
33
# List all library dependencies and extras in this file.
44
google-api-core
5+
google-auth
6+
grpcio
57
proto-plus
68
protobuf
79
google-cloud-access-context-manager

tests/integration/goldens/asset/testing/constraints-3.12.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# This constraints file is required for unit tests.
33
# List all library dependencies and extras in this file.
44
google-api-core
5+
google-auth
6+
grpcio
57
proto-plus
68
protobuf
79
google-cloud-access-context-manager

tests/integration/goldens/asset/testing/constraints-3.13.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
# Then this file should have google-cloud-foo>=1
88
google-api-core>=2
99
google-auth>=2
10+
grpcio>=1
1011
proto-plus>=1
1112
protobuf>=6
1213
google-cloud-access-context-manager>=0

0 commit comments

Comments
 (0)