| 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( | |
| hub_name = "pypi", | |
| python_version = "3.9", | |
| requirements_lock = "//:requirements_lock.txt", | |
| ) | |
| use_repo(pip, "pypi") |