@@ -2,6 +2,24 @@ workspace(name = "tensorflow_data_validation")
22
33load ("@bazel_tools//tools/build_defs/repo:http.bzl" , "http_archive" )
44
5+ _PROTOBUF_COMMIT = "6.31.1"
6+
7+ http_archive (
8+ name = "com_google_protobuf" ,
9+ sha256 = "6e09bbc950ba60c3a7b30280210cd285af8d7d8ed5e0a6ed101c72aff22e8d88" ,
10+ strip_prefix = "protobuf-%s" % _PROTOBUF_COMMIT ,
11+ urls = [
12+ "https://github.com/protocolbuffers/protobuf/archive/refs/tags/v%s.zip" % _PROTOBUF_COMMIT ,
13+ ],
14+ patch_cmds = [
15+ "touch BUILD" ,
16+ ],
17+ )
18+
19+ load ("@com_google_protobuf//:protobuf_deps.bzl" , "protobuf_deps" )
20+
21+ protobuf_deps ()
22+
523http_archive (
624 name = "zlib" ,
725 build_file = "@com_google_protobuf//:third_party/zlib.BUILD" ,
@@ -21,24 +39,24 @@ http_archive(
2139# Generic Bazel Support #
2240################################################################################
2341
24- http_archive (
25- name = "rules_proto" ,
26- sha256 = "6fb6767d1bef535310547e03247f7518b03487740c11b6c6adb7952033fe1295" ,
27- strip_prefix = "rules_proto-6.0.2" ,
28- url = "https://github.com/bazelbuild/rules_proto/releases/download/6.0.2/rules_proto-6.0.2.tar.gz" ,
29- )
30-
31- load ("@rules_proto//proto:repositories.bzl" , "rules_proto_dependencies" )
32-
33- rules_proto_dependencies ()
34-
35- load ("@rules_proto//proto:setup.bzl" , "rules_proto_setup" )
36-
37- rules_proto_setup ()
38-
39- load ("@rules_proto//proto:toolchains.bzl" , "rules_proto_toolchains" )
40-
41- rules_proto_toolchains ()
42+ # http_archive(
43+ # name = "rules_proto",
44+ # sha256 = "6fb6767d1bef535310547e03247f7518b03487740c11b6c6adb7952033fe1295",
45+ # strip_prefix = "rules_proto-6.0.2",
46+ # url = "https://github.com/bazelbuild/rules_proto/releases/download/6.0.2/rules_proto-6.0.2.tar.gz",
47+ # )
48+ #
49+ # load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies")
50+ #
51+ # rules_proto_dependencies()
52+ #
53+ # load("@rules_proto//proto:setup.bzl", "rules_proto_setup")
54+ #
55+ # rules_proto_setup()
56+ #
57+ # load("@rules_proto//proto:toolchains.bzl", "rules_proto_toolchains")
58+ #
59+ # rules_proto_toolchains()
4260
4361# Install version 0.9.0 of rules_foreign_cc, as default version causes an
4462# invalid escape sequence error to be raised, which can't be avoided with
@@ -61,27 +79,29 @@ rules_foreign_cc_dependencies()
6179
6280http_archive (
6381 name = "bazel_skylib" ,
64- sha256 = "97e70364e9249702246c0e9444bccdc4b847bed1eb03c5a3ece4f83dfe6abc44 " ,
82+ sha256 = "3b5b49006181f5f8ff626ef8ddceaa95e9bb8ad294f7b5d7b11ea9f7ddaf8c59 " ,
6583 urls = [
66- "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.2 /bazel-skylib-1.0.2 .tar.gz" ,
67- "https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.2 /bazel-skylib-1.0.2 .tar.gz" ,
84+ "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.9.0 /bazel-skylib-1.9.0 .tar.gz" ,
85+ "https://github.com/bazelbuild/bazel-skylib/releases/download/1.9.0 /bazel-skylib-1.9.0 .tar.gz" ,
6886 ],
6987)
7088
71- _PROTOBUF_COMMIT = "4.25.6" # 4.25.6
72-
7389http_archive (
74- name = "com_google_protobuf" ,
75- sha256 = "ff6e9c3db65f985461d200c96c771328b6186ee0b10bc7cb2bbc87cf02ebd864" ,
76- strip_prefix = "protobuf-%s" % _PROTOBUF_COMMIT ,
77- urls = [
78- "https://github.com/protocolbuffers/protobuf/archive/v4.25.6.zip" ,
79- ],
90+ name = "rules_python" ,
91+ sha256 = "c68bdc4fbec25de5b5493b8819cfc877c4ea299c0dcb15c244c5a00208cde311" ,
92+ strip_prefix = "rules_python-0.31.0" ,
93+ url = "https://github.com/bazelbuild/rules_python/releases/download/0.31.0/rules_python-0.31.0.tar.gz" ,
94+ )
95+
96+ load ("@rules_python//python:repositories.bzl" , "py_repositories" )
97+ py_repositories ()
98+
99+ local_repository (
100+ name = "compatibility_proxy" ,
101+ path = "third_party/dummy_compatibility_proxy" ,
80102)
81103
82- load ("@com_google_protobuf//:protobuf_deps.bzl" , "protobuf_deps" )
83104
84- protobuf_deps ()
85105
86106# Use the last commit on the relevant release branch to update.
87107# LINT.IfChange(arrow_archive_version)
@@ -101,9 +121,28 @@ http_archive(
101121
102122http_archive (
103123 name = "com_google_absl" ,
104- urls = ["https://github.com/abseil/abseil-cpp/archive/refs/tags/20230802.1.tar.gz" ],
105- strip_prefix = "abseil-cpp-20230802.1" ,
106- sha256 = "987ce98f02eefbaf930d6e38ab16aa05737234d7afbab2d5c4ea7adbe50c28ed" ,
124+ urls = ["https://github.com/abseil/abseil-cpp/archive/refs/tags/20250127.2.tar.gz" ],
125+ strip_prefix = "abseil-cpp-20250127.2" ,
126+ sha256 = "f5a67394128fb4d9a18124820026014591942d9c882d9055d4d2412b13bf1c91" ,
127+ patch_cmds = [
128+ "sed -i '/@rules_cc\\ /\\ /cc\\ /compiler:emscripten/d' absl/debugging/BUILD.bazel" ,
129+ "sed -i '/@rules_cc\\ /\\ /cc\\ /compiler:emscripten/d' absl/base/BUILD.bazel" ,
130+ "sed -i '/@rules_cc\\ /\\ /cc\\ /compiler:emscripten/d' absl/random/internal/BUILD.bazel" ,
131+ "sed -i '/@rules_cc\\ /\\ /cc\\ /compiler:emscripten/d' absl/synchronization/BUILD.bazel" ,
132+ ],
133+ )
134+
135+ http_archive (
136+ name = "abseil-cpp" ,
137+ urls = ["https://github.com/abseil/abseil-cpp/archive/refs/tags/20250127.2.tar.gz" ],
138+ strip_prefix = "abseil-cpp-20250127.2" ,
139+ sha256 = "f5a67394128fb4d9a18124820026014591942d9c882d9055d4d2412b13bf1c91" ,
140+ patch_cmds = [
141+ "sed -i '/@rules_cc\\ /\\ /cc\\ /compiler:emscripten/d' absl/debugging/BUILD.bazel" ,
142+ "sed -i '/@rules_cc\\ /\\ /cc\\ /compiler:emscripten/d' absl/base/BUILD.bazel" ,
143+ "sed -i '/@rules_cc\\ /\\ /cc\\ /compiler:emscripten/d' absl/random/internal/BUILD.bazel" ,
144+ "sed -i '/@rules_cc\\ /\\ /cc\\ /compiler:emscripten/d' absl/synchronization/BUILD.bazel" ,
145+ ],
107146)
108147
109148
@@ -128,14 +167,15 @@ http_archive(
128167
129168# TODO(b/177694034): Follow the new format for tensorflow import after TF 2.5.
130169#here
131- TENSORFLOW_COMMIT = "3c92ac03cab816044f7b18a86eb86aa01a294d95" # 2.17.1
170+ # Corresponds to tag v2.21.0
171+ TENSORFLOW_COMMIT = "a481b10260dfdf833a1b16007eead49c1d7febf3"
132172
133173http_archive (
134174 name = "org_tensorflow_no_deps" ,
135175 patches = [
136176 "//third_party:tensorflow_expose_example_proto.patch" ,
137177 ],
138- sha256 = "317dd95c4830a408b14f3e802698eb68d70d81c7c7cfcd3d28b0ba023fe84a68 " ,
178+ sha256 = "ef3568bb4865d6c1b2564fb5689c19b6b9a5311572cd1f2ff9198636a8520921 " ,
139179 strip_prefix = "tensorflow-%s" % TENSORFLOW_COMMIT ,
140180 urls = [
141181 "https://github.com/tensorflow/tensorflow/archive/%s.tar.gz" % TENSORFLOW_COMMIT ,
@@ -152,6 +192,13 @@ http_archive(
152192 urls = ["https://github.com/pybind/pybind11/archive/%s.zip" % PYBIND11_COMMIT ],
153193)
154194
195+ http_archive (
196+ name = "com_google_googletest" ,
197+ urls = ["https://github.com/google/googletest/archive/refs/tags/v1.14.0.tar.gz" ],
198+ strip_prefix = "googletest-1.14.0" ,
199+ sha256 = "8ad598c73ad796e0d8280b082cebd82a630d73e73cd3c70057938a6501bba5d7" ,
200+ )
201+
155202load ("//third_party:python_configure.bzl" , "local_python_configure" )
156203
157204local_python_configure (name = "local_config_python" )
@@ -236,7 +283,7 @@ http_archive(
236283# Specify the minimum required bazel version.
237284load ("@bazel_skylib//lib:versions.bzl" , "versions" )
238285
239- versions .check ("6.5 .0" )
286+ versions .check ("7.7 .0" )
240287
241288# Please add all new TensorFlow Data Validation dependencies in workspace.bzl.
242289load ("//tensorflow_data_validation:workspace.bzl" , "tf_data_validation_workspace" )
0 commit comments