v0.6.0
Pre-release
Pre-release
Using Bzlmod with Bazel 6:
Add to your MODULE.bazel file:
bazel_dep(name = "aspect_rules_py", version = "0.6.0")And also register a Python toolchain, see rules_python. For example:
bazel_dep(name = "rules_python", dev_dependency = True, version = "0.27.1")
# NB: users need this as well, until a new version of rules_python is released
archive_override(
module_name = "rules_python",
urls = "https://github.com/bazelbuild/rules_python/archive/52381415be9d3618130f02a821aef50de1e3af09.tar.gz",
integrity = "sha256-pYfEFNWqygSEElDYgJsuIeDYn9oll/rZB0GcR+6rirA=",
strip_prefix = "rules_python-52381415be9d3618130f02a821aef50de1e3af09",
)
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 = "d60bb474069d77314532c3dd36ef162ab91ef3fe6e04d60836bd922a08e9fb4b",
strip_prefix = "rules_py-0.6.0",
url = "https://github.com/aspect-build/rules_py/releases/download/v0.6.0/rules_py-v0.6.0.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()What's Changed
- fix: install transitive wheels reachable through resolutions by @alexeagle in #230
- fix: use original interpreter path as 'home' value in pyvenv.cfg by @mattem in #232
- chore(deps): update dependency bazel to v6.4.0 by @renovate in #224
- chore(deps): update dependency rules_python to v0.27.1 by @renovate in #211
- chore: minimal changes required to upgrade to Bazel 7 and bzlmod by @alexeagle in #234
- fix: handle py_binary#main like rules_python does by @alexeagle in #241
- fix: py_library add srcs to its runfiles by @alexeagle in #242
- chore: upgrade rules_python near HEAD by @alexeagle in #245
- chore(deps): update dependency bazel_skylib_gazelle_plugin to v1.5.0 by @renovate in #243
- chore(deps): update dependency bazel_gazelle to v0.35.0 by @renovate in #240
- chore(deps): update dependency aspect_bazel_lib to v1.40.0 by @renovate in #239
- chore: cancel previous GHA from the same PR by @gregmagolan in #254
- chore: upgrade to Bazel 7.0.2 by @gregmagolan in #249
Full Changelog: v0.5.0...v0.6.0