purple-plastic-57801
12/01/2023, 3:49 AMadhoc_tool(
name="sphinx-build",
runnable="//third_party/sphinx:build",
args=["-M", "html", "docs/", "_build"],
execution_dependencies=[
":sphinx-apidoc",
"//enclosure/docs",
"//enclosure/docs:index",
"//enclosure/enclosure",
],
output_directories=["_build"],
root_output_directory="./_build",
log_output=True,
)
But the //enclosure/enclosure
dependency is only that level, is there a way I can say give me all dependencies under //enclosure/enclosure
without specifying each subdir?purple-plastic-57801
12/01/2023, 4:04 AMexecution_dependencies
is not being pulled in. 🤔purple-plastic-57801
12/01/2023, 4:06 AMpurple-plastic-57801
12/01/2023, 4:11 AMpurple-plastic-57801
12/01/2023, 4:13 AMpurple-plastic-57801
12/01/2023, 4:17 AMhappy-kitchen-89482
12/01/2023, 5:01 AMexecution_dependencies
to be transitively in the sandbox, if you run with --keep-sandboxes=always
are they not there?purple-plastic-57801
12/01/2023, 5:03 AMpurple-plastic-57801
12/01/2023, 5:06 AMpython_sources(name="conf")
files(name="index", sources=["index.md"])
DOC_DEPS = [
":conf",
":index",
... other deps
]
SPHINX_DEPS = [
".build/requirements:reqs-dev#myst-parser",
"//.build/requirements:reqs-dev#sphinx",
]
pex_binary(
name="sphinx-apidoc",
script="sphinx-apidoc",
dependencies=SPHINX_DEPS,
)
adhoc_tool(
name="build-apidoc",
runnable=":build-apidoc",
args=[
"--force",
"--module-first",
"--output-dir",
"enclosure/docs/source",
"./../enclosure",
"setup.py",
"test/",
],
execution_dependencies=[
"//enclosure/enclosure",
"//enclosure/docs",
"//enclosure/docs:index",
],
output_directories=["./_build"],
root_output_directory="./_build",
log_output=True,
)
pex_binary(
name="sphinx-build",
script="sphinx-build",
dependencies=SPHINX_DEPS + DOC_DEPS,
)
adhoc_tool(
name="build-html",
runnable=":sphinx-build",
args=["-M", "html", ".", "_build"],
execution_dependencies=[":sphinx-apidoc"] + DOC_DEPS,
output_directories=["_build"],
root_output_directory="./_build",
log_output=True,
)
archive(name="docs", files=[":build-apidoc"], format="zip")
happy-kitchen-89482
12/01/2023, 5:39 AMpants dependencies --transitive //enclosure/enclosure
?