@@ -7,16 +7,18 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
7
7
# the --incompatible_restrict_string_escapes=false flag (flag was removed in
8
8
# Bazel 5.0).
9
9
RULES_FOREIGN_CC_VERSION = "0.9.0"
10
+
10
11
http_archive (
11
12
name = "rules_foreign_cc" ,
13
+ patch_tool = "patch" ,
14
+ patches = ["//third_party:rules_foreign_cc.patch" ],
12
15
sha256 = "2a4d07cd64b0719b39a7c12218a3e507672b82a97b98c6a89d38565894cf7c51" ,
13
16
strip_prefix = "rules_foreign_cc-%s" % RULES_FOREIGN_CC_VERSION ,
14
17
url = "https://github.com/bazelbuild/rules_foreign_cc/archive/refs/tags/%s.tar.gz" % RULES_FOREIGN_CC_VERSION ,
15
- patch_tool = "patch" ,
16
- patches = ["//third_party:rules_foreign_cc.patch" ,],
17
18
)
18
19
19
20
load ("@rules_foreign_cc//foreign_cc:repositories.bzl" , "rules_foreign_cc_dependencies" )
21
+
20
22
rules_foreign_cc_dependencies ()
21
23
22
24
http_archive (
@@ -28,30 +30,31 @@ http_archive(
28
30
],
29
31
)
30
32
31
- _PROTOBUF_COMMIT = "3.21.9 " # 3.20.3
33
+ _PROTOBUF_COMMIT = "4.25.6 " # 4.25.6
32
34
33
35
http_archive (
34
36
name = "com_google_protobuf" ,
35
- sha256 = "f66073dee0bc159157b0bd7f502d7d1ee0bc76b3c1eac9836927511bdc4b3fc1 " ,
37
+ sha256 = "ff6e9c3db65f985461d200c96c771328b6186ee0b10bc7cb2bbc87cf02ebd864 " ,
36
38
strip_prefix = "protobuf-%s" % _PROTOBUF_COMMIT ,
37
39
urls = [
38
- "https://github.com/protocolbuffers/protobuf/archive/v3.21.9 .zip"
40
+ "https://github.com/protocolbuffers/protobuf/archive/v4.25.6 .zip" ,
39
41
],
40
42
)
41
43
42
44
# Needed by abseil-py by zetasql.
43
45
http_archive (
44
46
name = "six_archive" ,
47
+ build_file = "//third_party:six.BUILD" ,
48
+ sha256 = "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a" ,
49
+ strip_prefix = "six-1.10.0" ,
45
50
urls = [
46
51
"http://mirror.bazel.build/pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz" ,
47
52
"https://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz" ,
48
53
],
49
- sha256 = "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a" ,
50
- strip_prefix = "six-1.10.0" ,
51
- build_file = "//third_party:six.BUILD"
52
54
)
53
55
54
56
load ("@com_google_protobuf//:protobuf_deps.bzl" , "protobuf_deps" )
57
+
55
58
protobuf_deps ()
56
59
57
60
# Use the last commit on the relevant release branch to update.
@@ -64,54 +67,58 @@ ARROW_COMMIT = "347a88ff9d20e2a4061eec0b455b8ea1aa8335dc" # 6.0.1
64
67
http_archive (
65
68
name = "arrow" ,
66
69
build_file = "//third_party:arrow.BUILD" ,
67
- strip_prefix = " arrow-%s" % ARROW_COMMIT ,
70
+ patches = [ "//third_party: arrow.patch" ] ,
68
71
sha256 = "55fc466d0043c4cce0756bc18e1e62b3233be74c9afe8dc0d18420b9a5fd9714" ,
72
+ strip_prefix = "arrow-%s" % ARROW_COMMIT ,
69
73
urls = ["https://github.com/apache/arrow/archive/%s.zip" % ARROW_COMMIT ],
70
- patches = ["//third_party:arrow.patch" ],
71
74
)
72
75
73
- COM_GOOGLE_ABSL_COMMIT = "92fdbfb301f8b301b28ab5c99e7361e775c2fb8a" # 2022-08-25 Abseil Logging library first release
76
+ COM_GOOGLE_ABSL_COMMIT = "fb3621f4f897824c0dbe0615fa94543df6192f30" # lts_2023_08_0
77
+
74
78
http_archive (
75
- name = "com_google_absl" ,
76
- url = "https://github.com/abseil/abseil-cpp/archive/%s.tar.gz" % COM_GOOGLE_ABSL_COMMIT ,
77
- sha256 = "71d38c5f44997a5ccbc338f904c8682b40c25cad60b9cbaf27087a917228d5fa" ,
78
- strip_prefix = "abseil-cpp-%s " % COM_GOOGLE_ABSL_COMMIT
79
+ name = "com_google_absl" ,
80
+ sha256 = "0320586856674d16b0b7a4d4afb22151bdc798490bb7f295eddd8f6a62b46fea" ,
81
+ strip_prefix = "abseil-cpp-%s" % COM_GOOGLE_ABSL_COMMIT ,
82
+ url = "https://github.com/ abseil/abseil -cpp/archive/%s.tar.gz " % COM_GOOGLE_ABSL_COMMIT ,
79
83
)
80
84
81
- TFMD_COMMIT = "71c756354375e9f72f32b7eb3d7f13221c83fea6" # 1.16.0
85
+ TFMD_COMMIT = "404805761e614561cceedc429e67c357c62be26d" # 1.17.1
86
+
82
87
http_archive (
83
88
name = "com_github_tensorflow_metadata" ,
84
- urls = [ "https://github.com/tensorflow/metadata/archive/%s.zip" % TFMD_COMMIT ] ,
89
+ sha256 = "1b72e0e5085812cd9b19e004a381b544542f9545a081f0f738c5ed6b8bb886a2" ,
85
90
strip_prefix = "metadata-%s" % TFMD_COMMIT ,
86
- sha256 = "9826543733abbe1fdd0b1bf9a5155bc8279a44e738dfd6149e647592c4657594" ,
91
+ urls = [ "https://github.com/tensorflow/metadata/archive/%s.zip" % TFMD_COMMIT ] ,
87
92
)
88
93
89
94
# TODO(b/177694034): Follow the new format for tensorflow import after TF 2.5.
90
95
#here
91
- TENSORFLOW_COMMIT = "810f233968cec850915324948bbbc338c97cf57f" # 2.16.2
96
+ TENSORFLOW_COMMIT = "3c92ac03cab816044f7b18a86eb86aa01a294d95" # 2.17.1
97
+
92
98
http_archive (
93
99
name = "org_tensorflow_no_deps" ,
94
- sha256 = "3b875c5121e752adc86578dc24747a220acfa2a7afa4026ff4172500b100854f" ,
100
+ patches = [
101
+ "//third_party:tensorflow_expose_example_proto.patch" ,
102
+ ],
103
+ sha256 = "317dd95c4830a408b14f3e802698eb68d70d81c7c7cfcd3d28b0ba023fe84a68" ,
95
104
strip_prefix = "tensorflow-%s" % TENSORFLOW_COMMIT ,
96
105
urls = [
97
- "https://mirror.bazel.build/github.com/tensorflow/tensorflow/archive/%s.tar.gz" % TENSORFLOW_COMMIT ,
98
106
"https://github.com/tensorflow/tensorflow/archive/%s.tar.gz" % TENSORFLOW_COMMIT ,
99
107
],
100
- patches = [
101
- "//third_party:tensorflow_expose_example_proto.patch" ,
102
- ],
103
108
)
104
109
105
110
PYBIND11_COMMIT = "8a099e44b3d5f85b20f05828d919d2332a8de841" # 2.11.1
111
+
106
112
http_archive (
107
- name = "pybind11" ,
108
- build_file = "//third_party:pybind11.BUILD" ,
109
- strip_prefix = "pybind11-%s" % PYBIND11_COMMIT ,
110
- urls = [ "https://github.com/pybind/ pybind11/archive/%s.zip " % PYBIND11_COMMIT ] ,
111
- sha256 = "8f4b7f28d214e36301435c055076c36186388dc9617117802cba8a059347cb00" ,
113
+ name = "pybind11" ,
114
+ build_file = "//third_party:pybind11.BUILD" ,
115
+ sha256 = "8f4b7f28d214e36301435c055076c36186388dc9617117802cba8a059347cb00" ,
116
+ strip_prefix = " pybind11-%s " % PYBIND11_COMMIT ,
117
+ urls = [ "https://github.com/pybind/pybind11/archive/%s.zip" % PYBIND11_COMMIT ] ,
112
118
)
113
119
114
120
load ("//third_party:python_configure.bzl" , "local_python_configure" )
121
+
115
122
local_python_configure (name = "local_config_python" )
116
123
117
124
http_archive (
@@ -124,41 +131,48 @@ http_archive(
124
131
],
125
132
)
126
133
127
- ZETASQL_COMMIT = "ac37cf5c0d80b5605176fc0f29e87b12f00be693" # 08/10/2022
134
+ ZETASQL_COMMIT = "589026c410c42de9aa8ee92ad16f745977140041" # 11/01/2023
135
+
128
136
http_archive (
129
137
name = "com_google_zetasql" ,
130
- urls = ["https://github.com/google/zetasql/archive/%s.zip" % ZETASQL_COMMIT ],
131
138
strip_prefix = "zetasql-%s" % ZETASQL_COMMIT ,
132
- sha256 = "651a768cd51627f58aa6de7039aba9ddab22f4b0450521169800555269447840" ,
139
+ urls = [ "https://github.com/google/zetasql/archive/%s.zip" % ZETASQL_COMMIT ] ,
133
140
)
134
141
135
142
load ("@com_google_zetasql//bazel:zetasql_deps_step_1.bzl" , "zetasql_deps_step_1" )
143
+
136
144
zetasql_deps_step_1 ()
145
+
137
146
load ("@com_google_zetasql//bazel:zetasql_deps_step_2.bzl" , "zetasql_deps_step_2" )
147
+
138
148
zetasql_deps_step_2 (
139
149
analyzer_deps = True ,
140
150
evaluator_deps = True ,
141
- tools_deps = False ,
142
151
java_deps = False ,
143
- testing_deps = False )
152
+ testing_deps = False ,
153
+ tools_deps = False ,
154
+ )
144
155
145
156
# This is part of what zetasql_deps_step_3() does.
146
157
load ("@com_google_googleapis//:repository_rules.bzl" , "switched_rules_by_language" )
158
+
147
159
switched_rules_by_language (
148
160
name = "com_google_googleapis_imports" ,
149
161
cc = True ,
150
162
)
151
163
152
164
_PLATFORMS_VERSION = "0.0.6"
165
+
153
166
http_archive (
154
167
name = "platforms" ,
168
+ sha256 = "5308fc1d8865406a49427ba24a9ab53087f17f5266a7aabbfc28823f3916e1ca" ,
155
169
urls = [
156
170
"https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/%s/platforms-%s.tar.gz" % (_PLATFORMS_VERSION , _PLATFORMS_VERSION ),
157
171
"https://github.com/bazelbuild/platforms/releases/download/%s/platforms-%s.tar.gz" % (_PLATFORMS_VERSION , _PLATFORMS_VERSION ),
158
172
],
159
- sha256 = "5308fc1d8865406a49427ba24a9ab53087f17f5266a7aabbfc28823f3916e1ca" ,
160
173
)
161
174
162
175
# Specify the minimum required bazel version.
163
176
load ("@bazel_skylib//lib:versions.bzl" , "versions" )
164
- versions .check ("6.1.0" )
177
+
178
+ versions .check ("6.5.0" )
0 commit comments