Skip to content

Commit 35a5b57

Browse files
Pins protobuf version <= 3.20.0 to satisfy both Vizier and TensorFlow requirements.
PiperOrigin-RevId: 534124782
1 parent 8980ab1 commit 35a5b57

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

kokoro/github/ubuntu/cpu/oldest/continuous.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ env_vars: {
66
}
77
env_vars: {
88
key: "TF_VERSION"
9-
value: "2.12.*"
9+
value: "2.9.*"
1010
}
1111
env_vars: {
1212
key: "TAG_FILTERS"

kokoro/github/ubuntu/cpu/oldest/presubmit.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ env_vars: {
66
}
77
env_vars: {
88
key: "TF_VERSION"
9-
value: "2.12.*"
9+
value: "2.9.*"
1010
}
1111
env_vars: {
1212
key: "TAG_FILTERS"

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def get_version():
168168
],
169169
namespace_packages=[],
170170
install_requires=[
171-
'apache-beam',
171+
'apache-beam~=2.46.0',
172172
'google-vizier>=0.0.13',
173173
'ml-collections',
174174
'networkx',
@@ -177,6 +177,9 @@ def get_version():
177177
'tensorflow>=2.9.0; platform_machine != "arm64" or platform_system != "Darwin"',
178178
'tensorflow-macos>=2.9.0; platform_machine == "arm64" and platform_system == "Darwin"',
179179
# pylint:enable=g-line-too-long
180+
# TODO(b/283835852): Remove when Vizier can upgrade to protobuf >= 4.0.
181+
'protobuf~=3.20.3',
182+
'wrapt~=1.14.1',
180183
],
181184
python_requires='>=3.8,<4',
182185
packages=find_namespace_packages(

0 commit comments

Comments
 (0)