-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMODULE.bazel
34 lines (26 loc) · 1004 Bytes
/
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
###############################################################################
# Bazel now uses Bzlmod by default to manage external dependencies.
# Please consider migrating your external dependencies from WORKSPACE to MODULE.bazel.
#
# For more details, please check https://github.com/bazelbuild/bazel/issues/18958
###############################################################################
## MODULE.bazel
module(
name = "my_test",
repo_name = "my_test_repo",
)
bazel_dep(name = "rules_python", version = "0.31.0")
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
bazel_dep(name = "pybind11_bazel", version = "2.11.1.bzl.3")
python.toolchain(
python_version = "3.10",
is_default = True,
)
use_repo(python, "python_versions")
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
pip.parse(
hub_name = "my_pip",
python_version = "3.10",
requirements_lock = "//python:requirements.txt",
)
use_repo(pip, "my_pip")