-
-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathMODULE.bazel
More file actions
57 lines (48 loc) · 1.53 KB
/
MODULE.bazel
File metadata and controls
57 lines (48 loc) · 1.53 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
52
53
54
55
56
57
module(name = "python_e2e")
# BEGIN BAZEL_DEP
bazel_dep(name = "rules_img")
local_path_override(
module_name = "rules_img",
path = "../..",
)
bazel_dep(name = "rules_img_pull_tool")
local_path_override(
module_name = "rules_img_pull_tool",
path = "../../pull_tool",
)
bazel_dep(name = "rules_img_tool")
local_path_override(
module_name = "rules_img_tool",
path = "../../img_tool",
)
register_toolchains("@rules_img_tool//toolchain:all")
# END BAZEL_DEP
bazel_dep(name = "rules_python", version = "1.8.3")
bazel_dep(name = "aspect_bazel_lib", version = "2.22.5") # only exists to upgrade bazel_lib used by aspect_rules_py to a version compatible with Bazel 9
bazel_dep(name = "aspect_rules_py", version = "1.11.2")
bazel_dep(name = "bazel_skylib", version = "1.8.1")
bazel_dep(name = "platforms", version = "0.0.11")
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
python_version = "3.13",
)
use_repo(python, "python_3_13")
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
pip.parse(
download_only = True,
hub_name = "pip",
python_version = "3.13",
requirements_lock = "//requirements:requirements_lock.txt",
)
use_repo(pip, "pip")
pull = use_repo_rule("@rules_img//img:pull.bzl", "pull")
pull(
name = "ubuntu",
digest = "sha256:c35e29c9450151419d9448b0fd75374fec4fff364a27f176fb458d472dfc9e54",
registries = [
"mirror.gcr.io",
"index.docker.io",
],
repository = "library/ubuntu",
tag = "latest",
)