-
Notifications
You must be signed in to change notification settings - Fork 5
/
MODULE.bazel
49 lines (43 loc) · 1.24 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
"""
pyrovelocity MODULE
"""
module(
name = "pyrovelocity",
version = "0.3.0",
compatibility_level = 1,
)
bazel_dep(name = "aspect_bazel_lib", version = "2.7.9")
# bazel_dep(name = "aspect_rules_py", version = "0.7.4")
bazel_dep(name = "rules_python", dev_dependency = True, version = "0.29.0")
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
configure_coverage_tool = True,
python_version = "3.11",
is_default = True,
)
# python.toolchain(
# configure_coverage_tool = True,
# python_version = "3.11",
# is_default = False,
# )
# use_repo(python, "python_3_10", "python_3_11", "python_versions")
#
# use
#
# load("@python_versions//3.10:defs.bzl", "py_test")
# load("@python_versions//3.11:defs.bzl", "py_test")
#
# in BUILD files instead of
#
# load("@rules_python//python:defs.bzl", "py_test")
#
# to load version-specific rules
# https://rules-python.readthedocs.io/en/latest/getting-started.html#pinning-to-a-python-version
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
pip.parse(
experimental_target_platforms = ["all"],
hub_name = "pip",
python_version = "3.11",
requirements_lock = "//:requirements-bazel.txt",
)
use_repo(pip, "pip")