forked from bazelbuild/rules_python
-
Notifications
You must be signed in to change notification settings - Fork 1
/
internal_deps.bzl
50 lines (42 loc) · 1.49 KB
/
internal_deps.bzl
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
"""Dependencies that are needed for rules_python tests and tools."""
load("@bazel_federation//:repositories.bzl", "bazel_stardoc", "rules_pkg")
load("@bazel_federation//:third_party_repositories.bzl", "futures_2_whl", "futures_3_whl", "google_cloud_language_whl", "grpc_whl", "mock_whl", "subpar")
load("@rules_python//python:pip.bzl", "pip_import")
def rules_python_internal_deps():
"""Fetches all required dependencies for rules_python tests and tools."""
bazel_stardoc()
subpar()
# Test data for WHL tool testing.
futures_2_whl()
futures_3_whl()
google_cloud_language_whl()
grpc_whl()
mock_whl()
piptool()
examples()
# For packaging and distribution
rules_pkg()
def piptool():
"""Fetches all required dependencies for pip."""
pip_import(
name = "piptool_deps",
requirements = "@rules_python//python:requirements.txt",
)
def examples():
"""Fetches all required dependencies for rules_python examples."""
pip_import(
name = "examples_helloworld",
requirements = "@rules_python//examples/helloworld:requirements.txt",
)
pip_import(
name = "examples_version",
requirements = "@rules_python//examples/version:requirements.txt",
)
pip_import(
name = "examples_boto",
requirements = "@rules_python//examples/boto:requirements.txt",
)
pip_import(
name = "examples_extras",
requirements = "@rules_python//examples/extras:requirements.txt",
)