From 5aff86baec6fb0b9b48f8977be7c68831978c792 Mon Sep 17 00:00:00 2001 From: Jack McCluskey Date: Mon, 19 May 2025 10:33:48 -0400 Subject: [PATCH 1/2] Update GRPC dependencies for Python 3.13 --- sdks/python/pyproject.toml | 2 +- sdks/python/setup.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sdks/python/pyproject.toml b/sdks/python/pyproject.toml index 633a8511a19a..375b8e65f365 100644 --- a/sdks/python/pyproject.toml +++ b/sdks/python/pyproject.toml @@ -21,7 +21,7 @@ requires = [ "setuptools", "wheel>=0.36.0", - "grpcio-tools==1.62.1", + "grpcio-tools==1.71.0", "mypy-protobuf==3.5.0", # Avoid https://github.com/pypa/virtualenv/issues/2006 "distlib==0.3.7", diff --git a/sdks/python/setup.py b/sdks/python/setup.py index 0d90ec760ed1..55d4055c173e 100644 --- a/sdks/python/setup.py +++ b/sdks/python/setup.py @@ -354,7 +354,8 @@ def get_portability_package_data(): 'fastavro>=0.23.6,<2', 'fasteners>=0.3,<1.0', # TODO(https://github.com/grpc/grpc/issues/37710): Unpin grpc - '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 + '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 + 'grpcio>=1.67.0; python_version >= "3.13"', 'hdfs>=2.1.0,<3.0.0', 'httplib2>=0.8,<0.23.0', 'jsonschema>=4.0.0,<5.0.0', From 7e5152af76e60b1016bbaad7ca13e9bbd3fdb0a3 Mon Sep 17 00:00:00 2001 From: Jack McCluskey Date: Mon, 19 May 2025 10:47:12 -0400 Subject: [PATCH 2/2] change grpcio-tools to be conditional --- sdks/python/pyproject.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdks/python/pyproject.toml b/sdks/python/pyproject.toml index 375b8e65f365..97a9fe6141ea 100644 --- a/sdks/python/pyproject.toml +++ b/sdks/python/pyproject.toml @@ -21,7 +21,8 @@ requires = [ "setuptools", "wheel>=0.36.0", - "grpcio-tools==1.71.0", + "grpcio-tools==1.62.1; python_version <= '3.12'", + "grpcio-tools==1.71.0; python_version >= '3.13'", "mypy-protobuf==3.5.0", # Avoid https://github.com/pypa/virtualenv/issues/2006 "distlib==0.3.7",