| module( |
| name = "debian_dependency_bazelizer", |
| version = "0.5.0", |
| compatibility_level = 1, |
| ) |
| |
| bazel_dep(name = "rules_python", version = "0.27.1") |
| |
| PYTHON_VERSIONS = [ |
| "3.8", |
| "3.9", |
| "3.10", |
| "3.11", |
| ] |
| |
| python = use_extension("@rules_python//python/extensions:python.bzl", "python") |
| |
| [ |
| python.toolchain( |
| is_default = python_version == PYTHON_VERSIONS[-1], |
| python_version = python_version, |
| ) |
| for python_version in PYTHON_VERSIONS |
| ] |
| |
| pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip") |
| |
| [ |
| pip.parse( |
| hub_name = "dep_bazelizer_deps", |
| python_version = python_version, |
| requirements_lock = "//:requirements.txt", |
| ) |
| for python_version in PYTHON_VERSIONS |
| ] |
| |
| use_repo(pip, "dep_bazelizer_deps") |