Skip to content

v1.6.5

Choose a tag to compare

@github-actions github-actions released this 14 Oct 22:17
· 40 commits to main since this release
8a557da

Using Bzlmod with Bazel 6:

Add to your MODULE.bazel file:

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

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", version = "0.29.0", dev_dependency = True)

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 = "6aabfc2c2f3b6a8ad80e4dfc251cfae872417134c1982396b1fce77dc518a62c",
    strip_prefix = "rules_py-1.6.5",
    url = "https://github.com/aspect-build/rules_py/releases/download/v1.6.5/rules_py-v1.6.5.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

  • chore: Support --incompatible_disable_native_repo_rules by @arrdem in #659
  • chore: remove BCR homepage, as we now use the BCR UI itself by @alexeagle in #660
  • chore(deps): update ubuntu:latest docker digest to 66460d5 by @renovate[bot] in #663
  • chore: Add tests covering the version transition by @arrdem in #661
  • fix(venv): Don't use dirs as the interpreter by @arrdem in #665
  • chore(deps): Bump tools_telemetry by @arrdem in #667
  • fix(py_venv): Partially resolve PYTHONHOME by @arrdem in #668

Full Changelog: v1.6.4...v1.6.5