@@ -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' ,
@@ -543,8 +543,14 @@ def get_portability_package_data():
543543 'dill' ,
544544 # match tft requirement.
545545 'tensorflow_transform>=1.14.0,<1.15.0' ,
546+ # TFT->TFX-BSL require pandas 1.x, which is not compatible
547+ # with numpy 2.x
548+ 'numpy<2' ,
546549 # To help with dependency resolution. Revise once
547550 # https://github.com/apache/beam/issues/37854 is fixed
551+ # tensorflow-transform requires dill, but doesn't set dill as a
552+ # hard requirement in setup.py.
553+ 'dill'
548554 'protobuf<4; python_version<"3.11"' ,
549555 # Comment out xgboost as it is breaking presubmit python ml
550556 # tests due to tag check introduced since pip 24.2
@@ -611,10 +617,12 @@ def get_portability_package_data():
611617 ],
612618 'redis' : ['redis>=5.0.0,<6' ],
613619 'tft' : [
614- 'tensorflow_transform>=1.14.0,<1.15.0'
620+ 'tensorflow_transform>=1.14.0,<1.15.0' ,
621+ # TFT->TFX-BSL require pandas 1.x, which is not compatible
622+ # with numpy 2.x
623+ 'numpy<2' ,
615624 # tensorflow-transform requires dill, but doesn't set dill as a
616625 # hard requirement in setup.py.
617- ,
618626 'dill'
619627 ],
620628 'tfrecord' : ['crcmod>=1.7,<2.0' ],
0 commit comments