-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
BUILD.bazel
64 lines (58 loc) · 1.38 KB
/
BUILD.bazel
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
package(default_visibility = ["//visibility:private"])
load(
"//tools/skylark:drake_py.bzl",
"drake_py_binary",
"drake_py_library",
)
load(
"//doc:defs.bzl",
"DEFAULT_TEST_TAGS",
"enumerate_filegroup",
)
load("//tools/lint:lint.bzl", "add_lint_tests")
# TODO(eric.cousineau): Add a smaller stub library stub to test this extension.
drake_py_library(
name = "pydrake_sphinx_extension_py",
srcs = ["pydrake_sphinx_extension.py"],
deps = [
"//bindings/pydrake",
"//doc/doxygen_cxx:system_doxygen",
],
)
filegroup(
name = "sphinx_input",
srcs = [
"_static/css/custom.css",
"conf.py",
"footer.html",
"layout.html",
"searchbox.html",
],
)
enumerate_filegroup(
name = "sphinx_input.txt",
data = [":sphinx_input"],
)
drake_py_binary(
name = "build",
srcs = ["build.py"],
add_test_rule = 1,
data = [
":sphinx_input",
":sphinx_input.txt",
],
test_rule_args = [
"--out_dir=<test>",
# Only generate some modules, so that the test provides quick feedback.
"pydrake.math",
],
test_rule_tags = DEFAULT_TEST_TAGS,
visibility = ["//doc:__pkg__"],
deps = [
":pydrake_sphinx_extension_py",
"//bindings/pydrake",
"//doc:defs",
"@stable_baselines3_internal//:stable_baselines3",
],
)
add_lint_tests()