-
Notifications
You must be signed in to change notification settings - Fork 2
/
WORKSPACE
29 lines (22 loc) · 837 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
25
26
27
28
29
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_python",
url = "https://github.com/bazelbuild/rules_python/releases/download/0.0.2/rules_python-0.0.2.tar.gz",
strip_prefix = "rules_python-0.0.2",
sha256 = "b5668cde8bb6e3515057ef465a35ad712214962f0b3a314e551204266c7be90c",
)
load("@rules_python//python:repositories.bzl", "py_repositories")
py_repositories()
# Only needed if using the packaging rules.
load("@rules_python//python:pip.bzl", "pip_repositories")
pip_repositories()
# Python external packages installation
load(
"@rules_python//python:pip.bzl", "pip3_import"
)
pip3_import(
name = "lambda_deps",
requirements = "//:requirements.txt", # Top level requirements.txt file
)
load("@lambda_deps//:requirements.bzl", "pip_install")
pip_install()