Skip to content

Commit f4a0f2b

Browse files
authored
Update GRPC dependencies for Python 3.13 (#35003)
* Update GRPC dependencies for Python 3.13 * change grpcio-tools to be conditional
1 parent 423f3c2 commit f4a0f2b

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

sdks/python/pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
requires = [
2222
"setuptools",
2323
"wheel>=0.36.0",
24-
"grpcio-tools==1.62.1",
24+
"grpcio-tools==1.62.1; python_version <= '3.12'",
25+
"grpcio-tools==1.71.0; python_version >= '3.13'",
2526
"mypy-protobuf==3.5.0",
2627
# Avoid https://github.com/pypa/virtualenv/issues/2006
2728
"distlib==0.3.7",

sdks/python/setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,8 @@ def get_portability_package_data():
354354
'fastavro>=0.23.6,<2',
355355
'fasteners>=0.3,<1.0',
356356
# TODO(https://github.com/grpc/grpc/issues/37710): Unpin grpc
357-
'grpcio>=1.33.1,<2,!=1.48.0,!=1.59.*,!=1.60.*,!=1.61.*,!=1.62.0,!=1.62.1,<1.66.0', # pylint: disable=line-too-long
357+
'grpcio>=1.33.1,<2,!=1.48.0,!=1.59.*,!=1.60.*,!=1.61.*,!=1.62.0,!=1.62.1,<1.66.0; python_version <= "3.12"', # pylint: disable=line-too-long
358+
'grpcio>=1.67.0; python_version >= "3.13"',
358359
'hdfs>=2.1.0,<3.0.0',
359360
'httplib2>=0.8,<0.23.0',
360361
'jsonschema>=4.0.0,<5.0.0',

0 commit comments

Comments
 (0)