v0.3.0
Pre-release
Pre-release
Using Bzlmod with Bazel 6:
Add to your MODULE.bazel file:
bazel_dep(name = "aspect_rules_py", version = "0.3.0")And also register a Python toolchain, see rules_python. For example:
bazel_dep(name = "rules_python", dev_dependency = True, version = "0.22.0")
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
name = "python3_9",
configure_coverage_tool = True,
python_version = "3.9",
)
use_repo(python, "python3_9_toolchains")
register_toolchains(
"@python3_9_toolchains//:all",
)Using WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_py",
sha256 = "d87463035d7df79b79e9a03247c463bda3623f26b7a24dd1ebee9ced2be38f4e",
strip_prefix = "rules_py-0.3.0",
url = "https://github.com/aspect-build/rules_py/releases/download/v0.3.0/rules_py-v0.3.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
- chore: update django to resolve dependabot alert by @gregmagolan in #155
- chore: bzlmod by @alexeagle in #162
Full Changelog: v0.2.0...v0.3.0