-
Notifications
You must be signed in to change notification settings - Fork 1
/
BUILD
73 lines (65 loc) · 1.72 KB
/
BUILD
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
73
load("@com_github_bazelbuild_buildtools//buildifier:def.bzl", "buildifier")
load("@rules_python//python:pip.bzl", "compile_pip_requirements")
load("@bazel_skylib//rules:common_settings.bzl", "string_flag")
package(default_visibility = ["//visibility:public"])
buildifier(
name = "buildifier_nuplan",
lint_mode = "fix",
lint_warnings = ["+native-py"],
)
string_flag(
name = "ubuntu_distro",
build_setting_default = "focal",
values = [
"bionic",
"focal",
],
)
config_setting(
name = "focal",
flag_values = {
":ubuntu_distro": "focal",
},
)
filegroup(
name = "requirements",
data = [
"requirements.txt",
"requirements_torch.txt",
],
)
buildifier(
name = "buildifier_test",
lint_mode = "warn",
lint_warnings = ["+native-py"],
mode = "check",
)
# See the 'pip_deps' pip_parse() in WORKSPACE for further details
# Validate: bazel test <targetname>_update
# Generate: bazel run <targetname>.update
compile_pip_requirements(
name = "pip_nuplan_devkit_deps",
timeout = "moderate", # Increase timeout for underlying py_tests
extra_args = [
"--allow-unsafe",
"--index-url=https://pypi.org/simple",
],
requirements_in = "requirements.txt",
requirements_txt = "requirements_lock.txt",
tags = [
"nuplan_devkit_local",
],
)
compile_pip_requirements(
name = "pip_deps_torch",
timeout = "moderate", # Increase timeout for underlying py_tests
extra_args = [
"--allow-unsafe",
"--index-url=https://pypi.org/simple",
],
requirements_in = "requirements_torch.txt",
requirements_txt = "requirements_torch_lock.txt",
tags = [
"nuplan_devkit_local",
],
)