-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMODULE.bazel
More file actions
executable file
·28 lines (25 loc) · 907 Bytes
/
MODULE.bazel
File metadata and controls
executable file
·28 lines (25 loc) · 907 Bytes
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
module(
name = "gamesave_vcs",
version = "0.1.0",
)
bazel_dep(name = "rules_python", version = "0.40.0")
# Python toolchain for 3.13 (must match requires-python)
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
# Uses hermetic Python; downloads if not present. Supports 3.13 in recent rules_python.
python_version = "3.13",
is_default = True,
# Enables coverage for tests
configure_coverage_tool = True,
ignore_root_user_error = True,
)
use_repo(python, "python_3_13")
# Pip dependencies from lockfile (generated from pyproject deps + test deps)
# This replaces setuptools/pip install; hermetic and reproducible.
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
pip.parse(
hub_name = "pypi",
python_version = "3.13",
requirements_lock = "//:requirements_lock.txt",
)
use_repo(pip, "pypi")