diff --git a/sdks/python/pyproject.toml b/sdks/python/pyproject.toml index 633a8511a19a..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.62.1", + "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", 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',