-
Notifications
You must be signed in to change notification settings - Fork 1
/
WORKSPACE
25 lines (22 loc) · 956 Bytes
/
WORKSPACE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
workspace(name = "ovh_reconciler")
# Load the bazel rules related to python from the latest archive.
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
# The WORKSPACE should define the interpreter used in the Bazel sandbox.
# At the time of writing the most recent version is python 3.11.
http_archive(
name = "rules_python",
sha256 = "0a8003b044294d7840ac7d9d73eef05d6ceb682d7516781a4ec62eeb34702578",
strip_prefix = "rules_python-0.24.0",
url = "https://github.com/bazelbuild/rules_python/archive/refs/tags/0.24.0.tar.gz",
)
load("@rules_python//python:repositories.bzl", "py_repositories")
py_repositories()
# To ensure reproducibility we also want to fix the version of the
# modules, and use pip to install them.
load("@rules_python//python:pip.bzl", "pip_parse")
pip_parse(
name = "pip_deps",
requirements_lock = ":requirements.txt",
)
load("@pip_deps//:requirements.bzl", "install_deps")
install_deps()