aboutsummaryrefslogtreecommitdiff
path: root/examples/pip_parse/MODULE.bazel
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pip_parse/MODULE.bazel')
-rw-r--r--examples/pip_parse/MODULE.bazel31
1 files changed, 31 insertions, 0 deletions
diff --git a/examples/pip_parse/MODULE.bazel b/examples/pip_parse/MODULE.bazel
new file mode 100644
index 0000000..3977f8a
--- /dev/null
+++ b/examples/pip_parse/MODULE.bazel
@@ -0,0 +1,31 @@
+module(name = "rules_python_pip_parse_example")
+
+bazel_dep(name = "rules_python", version = "0.0.0")
+local_path_override(
+ module_name = "rules_python",
+ path = "../..",
+)
+
+python = use_extension("@rules_python//python/extensions:python.bzl", "python")
+python.toolchain(
+ python_version = "3.9",
+)
+
+pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
+pip.parse(
+ experimental_requirement_cycles = {
+ "sphinx": [
+ "sphinx",
+ "sphinxcontrib-serializinghtml",
+ "sphinxcontrib-qthelp",
+ "sphinxcontrib-htmlhelp",
+ "sphinxcontrib-devhelp",
+ "sphinxcontrib-applehelp",
+ ],
+ },
+ hub_name = "pypi",
+ python_version = "3.9",
+ requirements_lock = "//:requirements_lock.txt",
+ requirements_windows = "//:requirements_windows.txt",
+)
+use_repo(pip, "pypi")