Skip to content

Commit

Permalink
Support TFX 1.10 (#187)
Browse files Browse the repository at this point in the history
* Initial release candidate testing for tfx==1.10.0rc0

* remove suffux from test_utils

* add missing extra line

* use tfx 1.10 constraint

* add firebase_publisher to readme
  • Loading branch information
casassg authored Oct 5, 2022
1 parent 95c413a commit c428694
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ tfxa.feast_examplegen.FeastExampleGen(...)
* [tfxa.sampling](https://github.com/tensorflow/tfx-addons/tree/main/tfx_addons/sampling)
* [tfxa.message_exit_handler](https://github.com/tensorflow/tfx-addons/tree/main/tfx_addons/message_exit_handler)
* [tfxa.pandas_transform](https://github.com/tensorflow/tfx-addons/tree/main/tfx_addons/pandas_transform)
* [tfxa.firebase_publisher](https://github.com/tensorflow/tfx-addons/tree/main/tfx_addons/firebase_publisher)

Check out [proposals](https://github.com/tensorflow/tfx-addons/tree/main/proposals) for a list of existing or upcoming projects proposals for TFX Addons.

Expand Down
4 changes: 3 additions & 1 deletion tfx_addons/utils/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,7 @@
def get_tfx_version(version: str) -> List[int]:
"""
Returns the TFX version as integers.
"""
"""
# NB(gcasassaez): Remove suffix to avoid parsing issues
version = version.split("-")[0]
return tuple([int(x) for x in version.split(".")]) # pylint: disable=R1728
4 changes: 2 additions & 2 deletions tfx_addons/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@

# Required TFX version [min, max)
_INCLUSIVE_MIN_TFX_VERSION = "1.4.0"
_EXCLUSIVE_MAX_TFX_VERSION = "1.10.0"
_EXCLUSIVE_MAX_TFX_VERSION = "1.11.0"
_TFXVERSION_CONSTRAINT = (
f">={_INCLUSIVE_MIN_TFX_VERSION},<{_EXCLUSIVE_MAX_TFX_VERSION}")
_CI_MAX_CONSTRAINTS = ["tfx~=1.9.0", "tensorflow~=2.9.0"]
_CI_MAX_CONSTRAINTS = ["tfx~=1.10.0", "tensorflow~=2.9.0"]
_CI_MIN_CONSTRAINTS = [
f"tfx~={_INCLUSIVE_MIN_TFX_VERSION}", "tensorflow~=2.6.0",
"apache-beam[gcp]<2.35", "firebase-admin<5.0.3"
Expand Down

0 comments on commit c428694

Please sign in to comment.