Skip to content

Commit 50a54a8

Browse files
authored
Update TFX-bsl and TFMD version constraints in setup.py to its master and pinning Bazel version to 7.7.0 (#349)
* Update setup.py * Point tfx-bsl to vkarampudi/tfx-bsl@testing fork * Remove .git suffix from tfx-bsl URL to resolve pip conflict * Point tfx-bsl dependency to official tensorflow/tfx-bsl@master branch * Configure Bazel version and disable build isolation in CI workflows
1 parent 7ccb5a9 commit 50a54a8

3 files changed

Lines changed: 18 additions & 5 deletions

File tree

.github/workflows/ci-test.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
- 'docs/**'
1010
workflow_dispatch:
1111

12+
env:
13+
USE_BAZEL_VERSION: 7.7.0
14+
1215
jobs:
1316
unit-tests:
1417
if: github.actor != 'copybara-service[bot]'
@@ -31,7 +34,10 @@ jobs:
3134
3235
- name: Install dependencies
3336
run: |
34-
pip install .[test]
37+
sudo apt update
38+
sudo apt install -y protobuf-compiler
39+
pip install --upgrade pip setuptools wheel numpy pyarrow
40+
pip install --no-build-isolation .[test]
3541
3642
- name: Run unit tests
3743
shell: bash

.github/workflows/wheels.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
release:
77
types: [published]
88

9+
env:
10+
USE_BAZEL_VERSION: 7.7.0
11+
912
jobs:
1013
build-package:
1114
name: Build sdist
@@ -20,11 +23,15 @@ jobs:
2023
python-version: '3.10'
2124

2225
- name: Install python dependencies
23-
run: pip install --upgrade pip build twine
26+
run: |
27+
sudo apt update
28+
sudo apt install -y protobuf-compiler
29+
pip install --upgrade pip setuptools wheel numpy pyarrow build twine
30+
pip install --no-build-isolation .
2431
2532
- name: Build sdist and wheel
2633
run: |
27-
python -m build --sdist --wheel -o wheelhouse
34+
python -m build --sdist --wheel --no-isolation -o wheelhouse
2835
2936
- name: List and check sdist
3037
run: |

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ def _make_required_install_packages():
5252
"tensorflow>=2.21,<2.22",
5353
"tensorflow-metadata"
5454
+ select_constraint(
55-
default=">=1.17.1,<1.18.0",
55+
default="@git+https://github.com/tensorflow/metadata@master",
5656
nightly=">=1.18.0.dev",
5757
git_master="@git+https://github.com/tensorflow/metadata@master",
5858
),
5959
"tf_keras>=2",
60-
"tfx-bsl@git+https://github.com/tensorflow/tfx-bsl.git@master",
60+
"tfx-bsl@git+https://github.com/tensorflow/tfx-bsl@master",
6161
]
6262

6363

0 commit comments

Comments
 (0)