Skip to content

v0.8.2

Compare
Choose a tag to compare
@github-actions github-actions released this 02 Oct 17:27
· 22 commits to main since this release
c355f6b

Using Bzlmod with Bazel 6:

Add to your MODULE.bazel file:

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

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

# Minimum version needs:
# feat: add interpreter_version_info to py_runtime by @mattem in #1671
bazel_dep(name = "rules_python", dev_dependency = True, version = "0.29.0")

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

Using WORKSPACE

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "aspect_rules_py",
    sha256 = "f5ee6605d01dfc962e3f257595dfdcf9e3526e60562fc31f3fbc405d9ff0c42d",
    strip_prefix = "rules_py-0.8.2",
    url = "https://github.com/aspect-build/rules_py/releases/download/v0.8.2/rules_py-v0.8.2.tar.gz",
)
# Fetches the rules_py dependencies.
# If you want to have a different version of some dependency,
# you should fetch it *before* calling this.
# Alternatively, you can skip calling this function, so long as you've
# already fetched all the dependencies.
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

  • refactor: py_venv macro improved defaults for usability by @alexeagle in #396
  • example: Bump versions in uv example by @hofbi in #374
  • chore(deps): update dependency org_chromium_sysroot_linux_x86_64 to v0.0.20 by @renovate in #387
  • chore(deps): update dependency org_chromium_sysroot_linux_arm64 to v0.0.20 by @renovate in #386
  • chore(BCR): drop Bazel 6 testing by @alexeagle in #397
  • chore(release): no longer creating prereleases by @alexeagle in #398
  • fix: add missing python version flag attr to pex by @mattem in #399

New Contributors

Full Changelog: v0.8.0...v0.8.2