-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMODULE.bazel
More file actions
51 lines (39 loc) · 1.39 KB
/
MODULE.bazel
File metadata and controls
51 lines (39 loc) · 1.39 KB
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
module(
name = "fire",
version = "0.5.0",
compatibility_level = 3,
)
bazel_dep(name = "rules_python", version = "1.8.5")
bazel_dep(name = "bazel_skylib", version = "1.9.0")
bazel_dep(name = "aspect_rules_lint", version = "2.2.0", dev_dependency = True)
PYTHON_VERSIONS = [
"3.10",
"3.11",
"3.12",
"3.13",
]
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
[
python.toolchain(python_version = PY_VER)
for PY_VER in PYTHON_VERSIONS
]
python.defaults(python_version = PYTHON_VERSIONS[0])
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
[
pip.parse(
hub_name = "pip",
python_version = PY_VER,
requirements_lock = "//:requirements.txt",
)
for PY_VER in PYTHON_VERSIONS
]
use_repo(pip, "pip")
bazel_dep(name = "rules_cc", version = "0.2.17", dev_dependency = True)
bazel_dep(name = "rules_go", version = "0.60.0", dev_dependency = True)
bazel_dep(name = "rules_rust", version = "0.69.0", dev_dependency = True)
bazel_dep(name = "rules_java", version = "9.6.1", dev_dependency = True)
rust = use_extension("@rules_rust//rust:extensions.bzl", "rust", dev_dependency = True)
rust.toolchain(edition = "2021")
use_repo(rust, "rust_toolchains")
java_toolchains = use_extension("@rules_java//java:extensions.bzl", "toolchains", dev_dependency = True)
use_repo(java_toolchains, "remote_java_tools")