Skip to content

Commit b062a2b

Browse files
hertschuhtensorflower-gardener
authored andcommitted
Update protobuf version for tf-keras.
PiperOrigin-RevId: 775884932
1 parent c79cc0e commit b062a2b

File tree

3 files changed

+19
-11
lines changed

3 files changed

+19
-11
lines changed

.bazelversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.4.0
1+
7.4.1

WORKSPACE

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ workspace(name = "org_keras")
33
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
44

55
# Needed by protobuf
6-
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
76
http_archive(
87
name = "bazel_skylib",
98
urls = [
@@ -15,6 +14,21 @@ http_archive(
1514
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
1615
bazel_skylib_workspace()
1716

17+
http_archive(
18+
name = "rules_python",
19+
sha256 = "8c8fe44ef0a9afc256d1e75ad5f448bb59b81aba149b8958f02f7b3a98f5d9b4",
20+
strip_prefix = "rules_python-0.13.0",
21+
url = "https://github.com/bazelbuild/rules_python/archive/refs/tags/0.13.0.tar.gz",
22+
)
23+
24+
load("@rules_python//python:repositories.bzl", "python_register_toolchains")
25+
26+
python_register_toolchains(
27+
name = "python3_10",
28+
python_version = "3.10",
29+
ignore_root_user_error = True,
30+
)
31+
1832
# Needed by protobuf
1933
http_archive(
2034
name = "six_archive",
@@ -31,9 +45,9 @@ bind(
3145

3246
http_archive(
3347
name = "com_google_protobuf",
34-
sha256 = "f66073dee0bc159157b0bd7f502d7d1ee0bc76b3c1eac9836927511bdc4b3fc1",
35-
strip_prefix = "protobuf-3.21.9",
36-
urls = ["https://github.com/protocolbuffers/protobuf/archive/v3.21.9.zip"],
48+
sha256 = "f645e6e42745ce922ca5388b1883ca583bafe4366cc74cf35c3c9299005136e2",
49+
strip_prefix = "protobuf-5.28.3",
50+
urls = ["https://github.com/protocolbuffers/protobuf/archive/v5.28.3.zip"],
3751
)
3852

3953
# ZLIB. Need by com_google_protobuf.

requirements.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@
33
pandas
44
pydot
55
scipy
6-
# Remove once both TensorFlow and TF-Keras nightly builds pass.
7-
# Temporarily enforce 4.21.6 version, as the only version which is compatible
8-
# with both new and old protobuf stubs. This is needed to resolve
9-
# Keras-TensorFlow circular dependency issue, when one of them gets a dependency
10-
# incompatible with another one (protobuf in this specific case).
11-
protobuf==4.21.6
126
tf-nightly
137
portpicker
148
pyyaml

0 commit comments

Comments
 (0)