forked from apt-itude/rules_pip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWORKSPACE
72 lines (56 loc) · 1.82 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
workspace(name = "com_apt_itude_rules_pip")
# Dependencies for this repository
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("//rules:dependencies.bzl", "pip_rules_dependencies")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
pip_rules_dependencies()
# Buildifier repositories
http_archive(
name = "io_bazel_rules_go",
sha256 = "7be7dc01f1e0afdba6c8eb2b43d2fa01c743be1b9273ab1eaf6c233df078d705",
url = "https://github.com/bazelbuild/rules_go/releases/download/0.16.5/rules_go-0.16.5.tar.gz",
)
http_archive(
name = "com_github_bazelbuild_buildtools",
strip_prefix = "buildtools-0.15.0",
url = "https://github.com/bazelbuild/buildtools/archive/0.15.0.zip",
)
load(
"@io_bazel_rules_go//go:def.bzl",
"go_register_toolchains",
"go_rules_dependencies",
)
go_rules_dependencies()
go_register_toolchains()
load(
"@com_github_bazelbuild_buildtools//buildifier:deps.bzl",
"buildifier_dependencies",
)
buildifier_dependencies()
# PIP repositories
load("//rules:repository.bzl", "pip_repository")
load("//:python.bzl", "PYTHON2", "PYTHON3")
pip_repository(
name = "pip2",
python_interpreter = PYTHON2,
requirements_per_platform = {
"//thirdparty/pip/2:requirements-linux.txt": "linux",
"//thirdparty/pip/2:requirements-osx.txt": "osx",
},
)
pip_repository(
name = "pip3",
python_interpreter = PYTHON3,
requirements_per_platform = {
"//thirdparty/pip/3:requirements-linux.txt": "linux",
"//thirdparty/pip/3:requirements-osx.txt": "osx",
},
)
pip_repository(
name = "pip3_internal",
python_interpreter = PYTHON3,
requirements_per_platform = {
"//thirdparty/pip/internal/3:requirements-linux.txt": "linux",
"//thirdparty/pip/internal/3:requirements-osx.txt": "osx",
},
)