forked from AmericanResearchInstitute/ari-backup
-
Notifications
You must be signed in to change notification settings - Fork 3
/
WORKSPACE
54 lines (42 loc) · 1.56 KB
/
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
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
workspace(name = "ari_backup")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_python",
sha256 = "863ba0fa944319f7e3d695711427d9ad80ba92c6edd0b7c7443b84e904689539",
strip_prefix = "rules_python-0.22.0",
url = "https://github.com/bazelbuild/rules_python/releases/download/0.22.0/rules_python-0.22.0.tar.gz",
)
load(
"@rules_python//python:repositories.bzl",
"py_repositories",
"python_register_toolchains",
)
py_repositories()
python_register_toolchains(
name = "python3_11",
python_version = "3.11",
)
load("@python3_11//:defs.bzl", "interpreter")
load("@rules_python//python:pip.bzl", "pip_parse")
# Create a central repo that knows about the dependencies needed from
# requirements_lock.txt.
pip_parse(
name = "requirements",
python_interpreter_target = interpreter,
requirements_lock = "//ari_backup:requirements_lock.txt",
)
# Load the starlark macro which will define your dependencies.
load("@requirements//:requirements.bzl", "install_deps")
# Call it to define repos for your requirements.
install_deps()
# Create a central repo that knows about the dependencies needed from
# test_requirements_lock.txt.
pip_parse(
name = "test_requirements",
python_interpreter_target = interpreter,
requirements_lock = "//ari_backup:test_requirements_lock.txt",
)
# Load the starlark macro which will define your dependencies.
load("@test_requirements//:requirements.bzl", install_test_deps = "install_deps")
# Call it to define repos for your requirements.
install_test_deps()