Skip to content

v1.7.2

Latest

Choose a tag to compare

@github-actions github-actions released this 12 Dec 05:38
ff8e27f

Using Bzlmod with Bazel 6:

Add to your MODULE.bazel file:

bazel_dep(name = "aspect_rules_py", version = "1.7.2")

And also register a Python toolchain, see rules_python. For example:

python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
    python_version = "3.13",
)

Using WORKSPACE

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "aspect_rules_py",
    sha256 = "4552ca9663d7cc8771b4669fd18779f8ce3cb99bae265e443f0330f3d1be4f3d",
    strip_prefix = "rules_py-1.7.2",
    url = "https://github.com/aspect-build/rules_py/releases/download/v1.7.2/rules_py-v1.7.2.tar.gz",
)

load("@aspect_rules_py//py:repositories.bzl", "rules_py_dependencies")

rules_py_dependencies()

load("@aspect_rules_py//py:toolchains.bzl", "rules_py_toolchains")

rules_py_toolchains()

# "Installation" for rules_python
load("@rules_python//python:repositories.bzl", "py_repositories", "python_register_toolchains")

python_register_toolchains(
    name = "python_toolchain",
    python_version = "3.9",
)

py_repositories()

What's Changed

  • fix(uv): Venv config conditions to public by @arrdem in #749
  • fix: add tar.bzl as dep since its needed sdist_build by @thesayyn in #751

Full Changelog: v1.7.1...v1.7.2