From 767c6010ccff14ffef3e8cd608372a96c4e5207b Mon Sep 17 00:00:00 2001 From: Valentyn Tymofieiev Date: Tue, 10 Mar 2026 14:50:07 -0700 Subject: [PATCH 1/3] Loosen GRPC requirements. --- .github/workflows/beam_PreCommit_GoPortable.yml | 2 ++ sdks/python/setup.py | 5 +---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/beam_PreCommit_GoPortable.yml b/.github/workflows/beam_PreCommit_GoPortable.yml index 1267ab60e3df..ccf9067c4b84 100644 --- a/.github/workflows/beam_PreCommit_GoPortable.yml +++ b/.github/workflows/beam_PreCommit_GoPortable.yml @@ -38,6 +38,8 @@ env: DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }} GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GE_CACHE_USERNAME }} GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GE_CACHE_PASSWORD }} + # TODO(https://github.com/grpc/grpc/issues/37710): Remove once fixed. + GRPC_ENABLE_FORK_SUPPORT: '0' # Setting explicit permissions for the action to avoid the default permissions which are `write-all` in case of pull_request_target event permissions: diff --git a/sdks/python/setup.py b/sdks/python/setup.py index 81e8acb82def..1b5e086d35af 100644 --- a/sdks/python/setup.py +++ b/sdks/python/setup.py @@ -381,10 +381,7 @@ def get_portability_package_data(): 'envoy-data-plane<0.3.0; python_version < "3.13"', 'fastavro>=0.23.6,<2', 'fasteners>=0.3,<1.0', - 'grpcio>=1.33.1,<2,!=1.48.0,!=1.59.*,!=1.60.*,!=1.61.*,!=1.62.0,!=1.62.1,!=1.66.*,!=1.67.*,!=1.68.*,!=1.69.*,!=1.70.*,!=1.71.*,!=1.72.*,!=1.73.*,!=1.74.*,!=1.75.*,!=1.76.*,!=1.77.*,!=1.78.0; python_version <= "3.12"', # pylint: disable=line-too-long - # TODO(https://github.com/grpc/grpc/issues/37710): Consolidate bounds - # across python versions once 1.78.1 is avaliable. - 'grpcio>=1.67.0,<2; python_version >= "3.13"', + 'grpcio>=1.33.1,<2,!=1.48.0,!=1.59.*,!=1.60.*,!=1.61.*,!=1.62.0,!=1.62.1,!=1.66.*,!=1.67.*,!=1.68.*,!=1.69.*,!=1.70.*', # pylint: disable=line-too-long 'httplib2>=0.8,<0.32.0', 'jsonpickle>=3.0.0,<4.0.0', # numpy can have breaking changes in minor versions. From 2e04ac774298e5cc7b8099d317cb7177f016afa0 Mon Sep 17 00:00:00 2001 From: Valentyn Tymofieiev Date: Tue, 10 Mar 2026 17:58:23 -0700 Subject: [PATCH 2/3] Change link to prevent throttling. --- sdks/python/container/license_scripts/dep_urls_py.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdks/python/container/license_scripts/dep_urls_py.yaml b/sdks/python/container/license_scripts/dep_urls_py.yaml index 8975bc67a2d2..857ba6236f93 100644 --- a/sdks/python/container/license_scripts/dep_urls_py.yaml +++ b/sdks/python/container/license_scripts/dep_urls_py.yaml @@ -135,7 +135,7 @@ pip_dependencies: pyhamcrest: license: "https://raw.githubusercontent.com/hamcrest/PyHamcrest/master/LICENSE.txt" pyjsparser: - license: "https://github.com/PiotrDabkowski/pyjsparser/blob/master/LICENSE" + license: "https://raw.githubusercontent.com/PiotrDabkowski/pyjsparser/refs/heads/master/LICENSE" pymongo: license: "https://raw.githubusercontent.com/mongodb/mongo-python-driver/master/LICENSE" milvus-lite: From 37076b98d25cff12a7bb09ed87e7122b2beabf2f Mon Sep 17 00:00:00 2001 From: Valentyn Tymofieiev Date: Tue, 10 Mar 2026 17:59:48 -0700 Subject: [PATCH 3/3] Change link to prevent throttling. --- sdks/python/container/license_scripts/dep_urls_py.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdks/python/container/license_scripts/dep_urls_py.yaml b/sdks/python/container/license_scripts/dep_urls_py.yaml index 857ba6236f93..658c130e6985 100644 --- a/sdks/python/container/license_scripts/dep_urls_py.yaml +++ b/sdks/python/container/license_scripts/dep_urls_py.yaml @@ -116,7 +116,7 @@ pip_dependencies: oauth2client: license: "https://raw.githubusercontent.com/googleapis/oauth2client/master/LICENSE" orjson: - license: "https://github.com/ijl/orjson/raw/master/LICENSE-APACHE" + license: "https://raw.githubusercontent.com/ijl/orjson/master/LICENSE-APACHE" pandas: license: "https://raw.githubusercontent.com/pandas-dev/pandas/master/LICENSE" pathlib2: