Skip to content

Commit f1071a0

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

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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)