Skip to content

Commit d1b4a9e

Browse files
authored
Specify grpcio version upper bound (#756)
1 parent 6289dad commit d1b4a9e

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

dl-on-flink-tensorflow-2.x/python/setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ def get_tf_lib(tf_lib):
147147
'apache-flink>=1.14.0, <1.15.0',
148148
f'{DL_ON_FLINK_FRAMEWORK_PACKAGE_NAME}=={VERSION}',
149149
'apache-flink-ml>=2.0.0, <3.0.0',
150-
'cloudpickle>=1.2.2'],
150+
'cloudpickle>=1.2.2',
151+
'protobuf<3.18',
152+
'grpcio>=1.24.3,<1.47.0'],
151153
setup_requires=setup_requires,
152154
url='https://github.com/flink-extended/dl-on-flink',
153155
license='https://www.apache.org/licenses/LICENSE-2.0'

dl-on-flink-tensorflow/python/setup.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ def get_tf_lib(tf_lib):
126126
return glob(os.path.join(tf_lib, "*tensorflow_framework*"))[0]
127127

128128

129-
setup_requires = ['tensorflow>=1.15.0, <2.0.0', 'protobuf<3.18']
129+
setup_requires = ['tensorflow>=1.15.0, <2.0.0', 'protobuf<3.18',
130+
'grpcio>=1.24.3,<1.47.0']
130131
if not in_dl_on_flink_source:
131132
setup_requires.append(f'{DL_ON_FLINK_FRAMEWORK_PACKAGE_NAME}=={VERSION}')
132133

@@ -147,7 +148,9 @@ def get_tf_lib(tf_lib):
147148
f'{DL_ON_FLINK_FRAMEWORK_PACKAGE_NAME}=={VERSION}',
148149
'apache-flink>=1.14.0, <1.15.0',
149150
'apache-flink-ml>=2.0.0, <3.0.0',
150-
'cloudpickle>=1.2.2'],
151+
'cloudpickle>=1.2.2',
152+
'protobuf<3.18',
153+
'grpcio>=1.24.3,<1.47.0'],
151154
setup_requires=setup_requires,
152155
url='https://github.com/flink-extended/dl-on-flink',
153156
license='https://www.apache.org/licenses/LICENSE-2.0'

0 commit comments

Comments
 (0)