-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMODULE.bazel
75 lines (68 loc) · 1.43 KB
/
MODULE.bazel
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
"""
https://bazel.build/external/module.
"""
# A name, so the default module is not __main__.
module(
name = "swu",
)
# Install bzl library helpers.
bazel_dep(
name = "bazel_skylib",
version = "1.5.0",
dev_dependency = True,
)
bazel_dep(
name = "bazel_skylib_gazelle_plugin",
version = "1.5.0",
dev_dependency = True,
)
# Install the buildifier prebuilt binary.
bazel_dep(
name = "buildifier_prebuilt",
version = "6.4.0",
dev_dependency = True,
)
# Install python3.
bazel_dep(
name = "rules_python",
version = "0.31.0",
dev_dependency = True,
)
python = use_extension(
"@rules_python//python/extensions:python.bzl",
"python",
)
python.toolchain(
configure_coverage_tool = True,
python_version = "3.11",
)
pip = use_extension(
"@rules_python//python/extensions:pip.bzl",
"pip",
)
pip.parse(
hub_name = "pip",
python_version = "3.11",
requirements_lock = "//third_party/python:requirements.txt",
)
use_repo(pip, "pip")
# Install gazelle, a Bazel build file generator for Bazel projects.
#
# See https://github.com/bazelbuild/bazel-gazelle.
bazel_dep(
name = "gazelle",
version = "0.35.0",
repo_name = "bazel_gazelle",
dev_dependency = True,
)
bazel_dep(
name = "rules_python_gazelle_plugin",
version = "0.31.0",
dev_dependency = True,
)
# Install nodejs.
bazel_dep(
name = "rules_nodejs",
version = "6.0.5",
dev_dependency = True,
)