blob: f0204ca8b9fcc9adf1262b4df5bf7caf4cbbcb9e [file] [log] [blame]
load("@pip//:requirements.bzl", "entry_point")
load("@rules_python//python:defs.bzl", "py_test")
load("@rules_python//python:pip.bzl", "compile_pip_requirements")
# This rule adds a convenient way to update the requirements file.
compile_pip_requirements(
name = "requirements",
requirements_windows = ":requirements_windows.txt",
)
pip_sphinx = entry_point(
pkg = "sphinx",
script = "sphinx-build",
)
pip_yamllint = entry_point("yamllint")
py_test(
name = "pip_parse_entry_points_test",
srcs = ["pip_repository_entry_points_test.py"],
data = [
pip_sphinx,
pip_yamllint,
],
env = {
"SPHINX_BUILD_ENTRY_POINT": "$(rootpath {})".format(pip_sphinx),
"YAMLLINT_ENTRY_POINT": "$(rootpath {})".format(pip_yamllint),
},
main = "pip_repository_entry_points_test.py",
deps = ["@rules_python//python/runfiles"],
)