bazel: migrate rules_python to bzlmod

This commit is contained in:
Malte Poll 2024-05-21 13:29:01 +02:00
parent 2ba94f5ba8
commit fd70709192
3 changed files with 1 additions and 24 deletions

View File

@ -4,3 +4,4 @@ bazel_dep(name = "bazel_skylib", version = "1.6.1")
bazel_dep(name = "hermetic_cc_toolchain", version = "3.1.0")
bazel_dep(name = "rules_cc", version = "0.0.9")
bazel_dep(name = "rules_pkg", version = "0.10.1")
bazel_dep(name = "rules_python", version = "0.32.2")

View File

@ -132,15 +132,6 @@ register_mkosi(
name = "mkosi_nix_toolchain",
)
# Python toolchain
load("//bazel/toolchains:python_deps.bzl", "python_deps")
python_deps()
load("@rules_python//python:repositories.bzl", "py_repositories")
py_repositories()
nixpkgs_python_configure(
fail_not_supported = False,
python3_attribute_path = "python311",

View File

@ -1,15 +0,0 @@
"""python toolchain rules"""
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
def python_deps():
http_archive(
name = "rules_python",
strip_prefix = "rules_python-0.31.0",
urls = [
"https://cdn.confidential.cloud/constellation/cas/sha256/c68bdc4fbec25de5b5493b8819cfc877c4ea299c0dcb15c244c5a00208cde311",
"https://github.com/bazelbuild/rules_python/releases/download/0.31.0/rules_python-0.31.0.tar.gz",
],
type = "tar.gz",
sha256 = "c68bdc4fbec25de5b5493b8819cfc877c4ea299c0dcb15c244c5a00208cde311",
)