Skip to content

Commit

Permalink
Pins protobuf version <= 3.20.0 to satisfy both Vizier and TensorFlow…
Browse files Browse the repository at this point in the history
… requirements.

PiperOrigin-RevId: 534124782
  • Loading branch information
mihirparadkar authored and tensorflower-gardener committed May 23, 2023
1 parent 8980ab1 commit 99c1395
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kokoro/github/ubuntu/cpu/oldest/continuous.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ env_vars: {
}
env_vars: {
key: "TF_VERSION"
value: "2.12.*"
value: "2.9.*"
}
env_vars: {
key: "TAG_FILTERS"
Expand Down
2 changes: 1 addition & 1 deletion kokoro/github/ubuntu/cpu/oldest/presubmit.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ env_vars: {
}
env_vars: {
key: "TF_VERSION"
value: "2.12.*"
value: "2.9.*"
}
env_vars: {
key: "TAG_FILTERS"
Expand Down
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ def get_version():
'tensorflow>=2.9.0; platform_machine != "arm64" or platform_system != "Darwin"',
'tensorflow-macos>=2.9.0; platform_machine == "arm64" and platform_system == "Darwin"',
# pylint:enable=g-line-too-long
# TODO(b/283835852): Remove when Vizier can upgrade to protobuf >= 4.0.
'protobuf~=3.20.3',
'wrapt~=1.13.0',
],
python_requires='>=3.8,<4',
packages=find_namespace_packages(
Expand Down

0 comments on commit 99c1395

Please sign in to comment.