|
@@ -1,13 +1,14 @@
|
|
|
|
|
+load("@rules_python//python:pip.bzl", "compile_pip_requirements")
|
|
|
load("@rules_python//python:defs.bzl", "py_binary")
|
|
load("@rules_python//python:defs.bzl", "py_binary")
|
|
|
-load("@deps//:requirements.bzl", "requirement")
|
|
|
|
|
|
|
|
|
|
py_binary(
|
|
py_binary(
|
|
|
name = "generate",
|
|
name = "generate",
|
|
|
srcs = ["generate.py"],
|
|
srcs = ["generate.py"],
|
|
|
deps = [
|
|
deps = [
|
|
|
- requirement("chevron"),
|
|
|
|
|
- requirement("markdown"),
|
|
|
|
|
- requirement("PyYAML"),
|
|
|
|
|
|
|
+ "@pypi//chevron:pkg",
|
|
|
|
|
+ "@pypi//importlib_metadata:pkg",
|
|
|
|
|
+ "@pypi//markdown:pkg",
|
|
|
|
|
+ "@pypi//pyyaml:pkg",
|
|
|
]
|
|
]
|
|
|
)
|
|
)
|
|
|
|
|
|
|
@@ -32,3 +33,8 @@ genrule(
|
|
|
outs = ["output"],
|
|
outs = ["output"],
|
|
|
cmd = "$(location :generate) $(location output) $(location :projects.yaml) $(locations :static) $(locations :templates)",
|
|
cmd = "$(location :generate) $(location output) $(location :projects.yaml) $(locations :static) $(locations :templates)",
|
|
|
)
|
|
)
|
|
|
|
|
+
|
|
|
|
|
+compile_pip_requirements(
|
|
|
|
|
+ name = "requirements",
|
|
|
|
|
+ requirements_txt = "requirements.txt",
|
|
|
|
|
+)
|