Skip to content

Commit bc3c190

Browse files
committed
Tune TFX deps more.
1 parent e2faa0f commit bc3c190

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

sdks/python/setup.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def cythonize(*args, **kwargs):
170170
'skl2onnx',
171171
'pyod>=0.7.6', # 0.7.5 crashes setuptools
172172
'tensorflow',
173-
# tensorflow transient dep, lower versions not compatible with Python3.10+
173+
# tensorflow transitive dep, lower versions not compatible with Python3.10+
174174
'absl-py>=0.12.0',
175175
'tensorflow-hub',
176176
'tf2onnx',
@@ -541,11 +541,14 @@ def get_portability_package_data():
541541
# tensorflow-transform requires dill, but doesn't set dill as a
542542
# hard requirement in setup.py.
543543
'dill',
544-
# match tft requirement.
544+
# match tft extra.
545545
'tensorflow_transform>=1.14.0,<1.15.0',
546-
# To help with dependency resolution. Revise once
546+
# TFT->TFX-BSL require pandas 1.x, which is not compatible
547+
# with numpy 2.x
548+
'numpy<2',
549+
# To help with dependency resolution in test suite. Revise once
547550
# https://github.com/apache/beam/issues/37854 is fixed
548-
'protobuf<4; python_version<"3.11"',
551+
'protobuf<4; python_version<"3.11"'
549552
# Comment out xgboost as it is breaking presubmit python ml
550553
# tests due to tag check introduced since pip 24.2
551554
# https://github.com/apache/beam/issues/31285
@@ -611,10 +614,12 @@ def get_portability_package_data():
611614
],
612615
'redis': ['redis>=5.0.0,<6'],
613616
'tft': [
614-
'tensorflow_transform>=1.14.0,<1.15.0'
617+
'tensorflow_transform>=1.14.0,<1.15.0',
618+
# TFT->TFX-BSL require pandas 1.x, which is not compatible
619+
# with numpy 2.x
620+
'numpy<2',
615621
# tensorflow-transform requires dill, but doesn't set dill as a
616622
# hard requirement in setup.py.
617-
,
618623
'dill'
619624
],
620625
'tfrecord': ['crcmod>=1.7,<2.0'],

0 commit comments

Comments
 (0)