This is an automated email from the ASF dual-hosted git repository. fcsaky pushed a commit to branch release-1.19 in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/release-1.19 by this push: new 99c4055fc50 [hotfix] Adapt docs and checks to bumped grpcio version 99c4055fc50 is described below commit 99c4055fc505c9d13ad555eac618b0203936d7a9 Author: Ferenc Csaky <fcs...@apache.org> AuthorDate: Thu May 29 22:22:27 2025 +0200 [hotfix] Adapt docs and checks to bumped grpcio version --- flink-python/README.md | 2 +- flink-python/dev/dev-requirements.txt | 4 ++-- flink-python/pyflink/gen_protos.py | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/flink-python/README.md b/flink-python/README.md index f8daeefd212..fdeeedf88b8 100644 --- a/flink-python/README.md +++ b/flink-python/README.md @@ -39,7 +39,7 @@ python pyflink/gen_protos.py ``` PyFlink depends on the following libraries to execute the above script: -1. grpcio-tools (>=1.29.0,<=1.50.0) +1. grpcio-tools (>=1.29.0,<=1.51.3) 2. setuptools (>=37.0.0) 3. pip (>=20.3) diff --git a/flink-python/dev/dev-requirements.txt b/flink-python/dev/dev-requirements.txt index 68ec39e32a7..a6c5ebe6f66 100755 --- a/flink-python/dev/dev-requirements.txt +++ b/flink-python/dev/dev-requirements.txt @@ -26,8 +26,8 @@ pyarrow>=5.0.0 pytz>=2018.3 numpy>=1.22.4 fastavro>=1.1.0,!=1.8.0 -grpcio>=1.29.0,<=1.52.0 -grpcio-tools>=1.29.0,<=1.52.0 +grpcio>=1.29.0,<=1.51.3 +grpcio-tools>=1.29.0,<=1.51.3 pemja==0.4.1; platform_system != 'Windows' httplib2>=0.19.0 protobuf>=3.19.0 diff --git a/flink-python/pyflink/gen_protos.py b/flink-python/pyflink/gen_protos.py index 1bb3cc91340..583b2f5111f 100644 --- a/flink-python/pyflink/gen_protos.py +++ b/flink-python/pyflink/gen_protos.py @@ -32,7 +32,7 @@ import warnings import pkg_resources -GRPC_TOOLS = 'grpcio-tools>=1.29.0,<=1.50.0' +GRPC_TOOLS = 'grpcio-tools>=1.29.0,<=1.51.3' PROTO_PATHS = ['proto'] PYFLINK_ROOT_PATH = os.path.dirname(os.path.abspath(__file__)) DEFAULT_PYTHON_OUTPUT_PATH = os.path.join(PYFLINK_ROOT_PATH, 'fn_execution') @@ -73,7 +73,7 @@ def generate_proto_files(force=True, output_dir=DEFAULT_PYTHON_OUTPUT_PATH): raise RuntimeError( 'Cannot generate protos for Windows since grpcio-tools package is ' 'not installed. Please install this package manually ' - 'using \'pip install "grpcio-tools>=1.29.0,<=1.50.0"\'.') + 'using \'pip install "grpcio-tools>=1.29.0,<=1.51.3"\'.') # Use a subprocess to avoid messing with this process' path and imports. # Note that this requires a separate module from setup.py for Windows: @@ -187,9 +187,9 @@ def _add_license_header(dir, file_name): def _check_grpcio_tools_version(): version = pkg_resources.get_distribution("grpcio-tools").parsed_version from pkg_resources import parse_version - if version < parse_version('1.29.0') or version > parse_version('1.50.0'): + if version < parse_version('1.29.0') or version > parse_version('1.51.3'): raise RuntimeError( - "Version of grpcio-tools must be between 1.29.0 and 1.50.0, got %s" % version) + "Version of grpcio-tools must be between 1.29.0 and 1.51.3, got %s" % version) if __name__ == '__main__':