blob: 46d69be3dcbafbcc6609627931c72fb4082ca83b [file] [log] [blame]
"""periareon/rules_venv"""
module(
name = "rules_venv",
version = "0.6.0",
)
bazel_dep(name = "bazel_skylib", version = "1.8.1")
bazel_dep(name = "platforms", version = "1.0.0")
bazel_dep(name = "rules_cc", version = "0.2.4")
bazel_dep(name = "rules_python", version = "1.5.1")
bazel_dep(name = "rules_shell", version = "0.5.1")
register_toolchains(
"//python/venv/toolchain",
)
bazel_dep(name = "rules_req_compile", version = "1.0.0rc35", dev_dependency = True)
bazel_dep(name = "stardoc", version = "0.8.0", dev_dependency = True, repo_name = "io_bazel_stardoc")
bazel_dep(name = "rules_rust_mdbook", version = "0.63.0", dev_dependency = True)
python = use_extension("@rules_python//python/extensions:python.bzl", "python", dev_dependency = True)
python.toolchain(
configure_coverage_tool = True,
# Working around a rules_python issue with docker
# https://github.com/bazelbuild/rules_python/pull/713
ignore_root_user_error = True,
is_default = True,
python_version = "3.11",
)
use_repo(
python,
"python_3_11_aarch64-apple-darwin",
"python_3_11_aarch64-unknown-linux-gnu",
"python_3_11_x86_64-apple-darwin",
"python_3_11_x86_64-pc-windows-msvc",
"python_3_11_x86_64-unknown-linux-gnu",
python311 = "python_3_11",
)
requirements = use_extension("@rules_req_compile//extensions:python.bzl", "requirements", dev_dependency = True)
requirements.parse(
name = "pip_deps",
requirements_locks = {
"//python/3rdparty:requirements_linux_aarch64.txt": "@@//python/3rdparty:linux_aarch64",
"//python/3rdparty:requirements_linux_x86_64.txt": "@@//python/3rdparty:linux_x86_64",
"//python/3rdparty:requirements_macos_aarch64.txt": "@@//python/3rdparty:macos_aarch64",
"//python/3rdparty:requirements_windows_x86_64.txt": "@@//python/3rdparty:windows_x86_64",
},
)
use_repo(requirements, "pip_deps")
register_toolchains(
"//python/black/toolchain",
"//python/isort/toolchain",
"//python/mypy/toolchain",
"//python/pylint/toolchain",
"//python/pytest/toolchain",
"//python/wheel/toolchain",
dev_dependency = True,
)
bazel_dep(name = "buildifier_prebuilt", version = "8.2.0.2", dev_dependency = True)