-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathWORKSPACE
294 lines (248 loc) · 9.93 KB
/
WORKSPACE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
# Consider https://thundergolfer.com/bazel/python/2021/06/25/a-basic-python-bazel-toolchain/
workspace(
name = "monorepo",
)
##############################################################################
# Bazel
##############################################################################
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "bazel_skylib",
sha256 = "bc283cdfcd526a52c3201279cda4bc298652efa898b10b4db0837dc51652756f",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.7.1/bazel-skylib-1.7.1.tar.gz",
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.7.1/bazel-skylib-1.7.1.tar.gz",
],
)
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
bazel_skylib_workspace()
http_archive(
name = "rules_cc",
sha256 = "2037875b9a4456dce4a79d112a8ae885bbc4aad968e6587dca6e64f3a0900cdf",
strip_prefix = "rules_cc-0.0.9",
urls = ["https://github.com/bazelbuild/rules_cc/releases/download/0.0.9/rules_cc-0.0.9.tar.gz"],
)
##############################################################################
# Python
##############################################################################
rules_python_version = "0.34.0"
http_archive(
name = "rules_python",
sha256 = "778aaeab3e6cfd56d681c89f5c10d7ad6bf8d2f1a72de9de55b23081b2d31618",
strip_prefix = "rules_python-{version}".format(version = rules_python_version),
url = "https://github.com/bazelbuild/rules_python/archive/{version}.tar.gz".format(
version = rules_python_version,
),
)
load("@rules_python//python:repositories.bzl", "py_repositories")
py_repositories()
load("@rules_python//python:repositories.bzl", "python_register_toolchains")
python_register_toolchains(
name = "python3_12",
python_version = "3.12",
)
load("@python3_12//:defs.bzl", "interpreter")
load("@rules_python//python:pip.bzl", "pip_parse")
pip_parse(
name = "pip_deps",
python_interpreter_target = interpreter,
requirements_lock = "//third_party:requirements.txt",
)
load("@pip_deps//:requirements.bzl", "install_deps")
install_deps()
##############################################################################
# Mypy
##############################################################################
#mypy_integration_version = "c1193a230e3151b89d2e9ed05b986da34075c280" # HEAD
#
#http_archive(
# name = "mypy_integration",
# patch_args = ["-p1"],
# patches = [
# "@//:third_party/mypy_integration-stubs.patch",
# "@//:third_party/mypy_integration-site_packages.patch",
# ],
# sha256 = "2014c4758da248f316b15c95f5e3be2978faacf137042de6586e0a8152b91946",
# strip_prefix = "bazel-mypy-integration-{version}".format(
# version = mypy_integration_version,
# ),
# url = "https://github.com/thundergolfer/bazel-mypy-integration/archive/{version}.tar.gz".format(
# version = mypy_integration_version,
# ),
#)
#
#load(
# "@mypy_integration//repositories:repositories.bzl",
# mypy_integration_repositories = "repositories",
#)
#
#mypy_integration_repositories()
#
#load("@mypy_integration//:config.bzl", "mypy_configuration")
#
#mypy_configuration("//tools/typing:mypy.ini")
#
#load("@mypy_integration//repositories:deps.bzl", mypy_integration_deps = "deps")
#
#mypy_integration_deps(
# mypy_requirements_file = "//tools/typing:mypy-requirements.txt",
# python_interpreter_target = interpreter,
#)
##############################################################################
# gtest
##############################################################################
gtest_version = "1.11.0"
http_archive(
name = "com_google_googletest",
sha256 = "b4870bf121ff7795ba20d20bcdd8627b8e088f2d1dab299a031c1034eddc93d5",
strip_prefix = "googletest-release-{version}".format(version = gtest_version),
url = "https://github.com/google/googletest/archive/release-{version}.tar.gz".format(
version = gtest_version,
),
)
##############################################################################
# npm
##############################################################################
#rules_nodejs_version = "5.4.0"
#
#http_archive(
# name = "build_bazel_rules_nodejs",
# sha256 = "ac7eb554af28232dc43deaf7e7247d12b128a97ecb676c2e5d028c5d521b0433",
# strip_prefix = "rules_nodejs-{version}".format(version = rules_nodejs_version),
# url = "https://github.com/bazelbuild/rules_nodejs/archive/{version}.tar.gz".format(
# version = rules_nodejs_version,
# ),
#)
#
#load("@build_bazel_rules_nodejs//:repositories.bzl", "build_bazel_rules_nodejs_dependencies")
#
#build_bazel_rules_nodejs_dependencies()
#
## Fetch transitive Bazel dependencies of karma_web_test
#http_archive(
# name = "io_bazel_rules_webtesting",
# sha256 = "e9abb7658b6a129740c0b3ef6f5a2370864e102a5ba5ffca2cea565829ed825a",
# urls = ["https://github.com/bazelbuild/rules_webtesting/releases/download/0.3.5/rules_webtesting.tar.gz"],
#)
#
#load("@build_bazel_rules_nodejs//:index.bzl", "yarn_install")
#
#yarn_install(
# name = "npm",
# package_json = "//game:package.json",
# yarn_lock = "//game:yarn.lock",
#)
#
##############################################################################
# LaTeX
##############################################################################
#BAZEL_LATEX_VERSION = "1.2.1"
#
#http_archive(
# name = "bazel_latex",
# sha256 = "82c99edaca50f938cb4881650737174eefedac844350b530942b874540400610",
# strip_prefix = "bazel-latex-{}".format(BAZEL_LATEX_VERSION),
# url = "https://github.com/ProdriveTechnologies/bazel-latex/archive/v{}.tar.gz".format(
# BAZEL_LATEX_VERSION,
# ),
#)
#
#load("@bazel_latex//:repositories.bzl", "latex_repositories")
#
#latex_repositories()
##############################################################################
# Pandoc
##############################################################################
#BAZEL_PANDOC_VERSION = "51605c25d3ae69a5b325d9986ac7ce8c9741ffa9"
#
#http_archive(
# name = "bazel_pandoc",
# sha256 = "0fcfa6a461098c8b8b9ba2f2d236d7f7aed988953f303c22c8c9cf96eb0c651f",
# strip_prefix = "bazel-pandoc-%s" % BAZEL_PANDOC_VERSION,
# url = "https://github.com/ProdriveTechnologies/bazel-pandoc/archive/{}.tar.gz".format(
# BAZEL_PANDOC_VERSION,
# ),
#)
#
#load("@bazel_pandoc//:repositories.bzl", "pandoc_repositories")
#
#pandoc_repositories()
##############################################################################
# Shellcheck
##############################################################################
http_archive(
name = "com_github_aignas_rules_shellcheck",
sha256 = "4e7cc56d344d0adfd20283f7ad8cb4fba822c0b15ce122665b00dd87a27a74b6",
strip_prefix = "rules_shellcheck-0.1.1",
url = "https://github.com/aignas/rules_shellcheck/archive/refs/tags/v0.1.1.tar.gz",
)
load("@com_github_aignas_rules_shellcheck//:deps.bzl", "shellcheck_dependencies")
shellcheck_dependencies()
##############################################################################
# Bats
##############################################################################
BAZEL_BATS_VERSION = "05902c66e7aba5bca0816109e9f34e2dbebe19f6"
http_archive(
name = "bazel_bats",
sha256 = "0be1795d8052c54e1068b3b0a648d67de0b9bf43cd15fd7bef73b6460b73b78f",
strip_prefix = "bazel-bats-{version}".format(version = BAZEL_BATS_VERSION),
url = "https://github.com/filmil/bazel-bats/archive/{version}.tar.gz".format(
version = BAZEL_BATS_VERSION,
),
)
load("@bazel_bats//:deps.bzl", "bazel_bats_dependencies")
bazel_bats_dependencies()
##############################################################################
# Shellmock
##############################################################################
BAZEL_SHELLMOCK_VERSION = "6612562e9683366490c48c83a97df0ea490772b7"
http_archive(
name = "bazel_shellmock",
sha256 = "f935f7c901e8a17c95d7367e4ed4645aad682e61ddd1c4b2cd82c2b74ec206a9",
strip_prefix = "bazel-shellmock-{version}".format(version = BAZEL_SHELLMOCK_VERSION),
url = "https://github.com/jmelahman/bazel-shellmock/archive/{version}.tar.gz".format(
version = BAZEL_SHELLMOCK_VERSION,
),
)
load("@bazel_shellmock//:deps.bzl", "bazel_shellmock_dependencies")
bazel_shellmock_dependencies()
#local_repository(
# name = "bazel_shellmock_git",
# path = "/home/jamison/code/bazel-shellmock",
#)
#
#load("@bazel_shellmock_git//:deps.bzl", "bazel_shellmock_dependencies")
#
#bazel_shellmock_dependencies()
##############################################################################
# Rules Go
##############################################################################
http_archive(
name = "io_bazel_rules_go",
sha256 = "099a9fb96a376ccbbb7d291ed4ecbdfd42f6bc822ab77ae6f1b5cb9e914e94fa",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.35.0/rules_go-v0.35.0.zip",
"https://github.com/bazelbuild/rules_go/releases/download/v0.35.0/rules_go-v0.35.0.zip",
],
)
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
go_rules_dependencies()
go_register_toolchains(version = "1.19.1")
##############################################################################
# Buildifier
##############################################################################
BUILDIFIER_VERSION = "0.4.1"
http_archive(
name = "buildifier_prebuilt",
sha256 = "c0c8a5e6caf9a99b037e77ed7a5f17615d50881d0d93de3e85c014705f7914fd",
strip_prefix = "buildifier-prebuilt-{}".format(BUILDIFIER_VERSION),
urls = [
"http://github.com/keith/buildifier-prebuilt/archive/{}.tar.gz".format(BUILDIFIER_VERSION),
],
)
load("@buildifier_prebuilt//:deps.bzl", "buildifier_prebuilt_deps")
buildifier_prebuilt_deps()
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
bazel_skylib_workspace()
load("@buildifier_prebuilt//:defs.bzl", "buildifier_prebuilt_register_toolchains")
buildifier_prebuilt_register_toolchains()