This is an automated email from the ASF dual-hosted git repository.
jrmccluskey pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/master by this push:
new f4a0f2b42db Update GRPC dependencies for Python 3.13 (#35003)
f4a0f2b42db is described below
commit f4a0f2b42db9418f35a19bf44cbf9457b3010ae5
Author: Jack McCluskey <[email protected]>
AuthorDate: Wed May 21 11:04:41 2025 -0400
Update GRPC dependencies for Python 3.13 (#35003)
* Update GRPC dependencies for Python 3.13
* change grpcio-tools to be conditional
---
sdks/python/pyproject.toml | 3 ++-
sdks/python/setup.py | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/sdks/python/pyproject.toml b/sdks/python/pyproject.toml
index 633a8511a19..97a9fe6141e 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 f7ed2cc2f74..e95f90f7746 100644
--- a/sdks/python/setup.py
+++ b/sdks/python/setup.py
@@ -354,7 +354,8 @@ if __name__ == '__main__':
'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',