Skip to content

Commit a10c6a4

Browse files
committed
build: relax dependency constraints for Python 3.12 compatibility
This commit updates the package dependencies in setup.py to allow TensorFlow Transform to be installed in modern Python 3.12 environments alongside locally compiled TFX components. Specific changes include: * Unpin PyArrow: Removed the `<11` upper bound on `pyarrow` to allow modern versions (e.g., 14+) to resolve, avoiding legacy Arrow 10 build failures during wheel installation. * Broaden TensorFlow: Relaxed the `tensorflow` requirement to `>=2.16,<2.18` for broader compatibility. * Adjust Component Bounds: Lowered the minimum required versions for `tensorflow-metadata` and `tfx-bsl` from `1.17.1` to `1.17.0` so pip can cleanly resolve the custom-built local wheels from previous steps.
1 parent 339b0cb commit a10c6a4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,19 +49,19 @@ def _make_required_install_packages():
4949
"numpy>=1.22.0",
5050
'protobuf>=4.25.2,<6.0.0;python_version>="3.11"',
5151
'protobuf>=4.21.6,<6.0.0;python_version<"3.11"',
52-
"pyarrow>=10,<11",
52+
"pyarrow>=10",
5353
"pydot>=1.2,<2",
54-
"tensorflow>=2.17,<2.18",
54+
"tensorflow>=2.16,<2.18",
5555
"tensorflow-metadata"
5656
+ select_constraint(
57-
default=">=1.17.1,<1.18.0",
57+
default=">=1.17.0,<1.18.0",
5858
nightly=">=1.18.0.dev",
5959
git_master="@git+https://github.com/tensorflow/metadata@master",
6060
),
6161
"tf_keras>=2",
6262
"tfx-bsl"
6363
+ select_constraint(
64-
default=">=1.17.1,<1.18.0",
64+
default=">=1.17.0,<1.18.0",
6565
nightly=">=1.18.0.dev",
6666
git_master="@git+https://github.com/tensorflow/tfx-bsl@master",
6767
),

0 commit comments

Comments
 (0)