v0.7.0
Pre-release
Pre-release
Using Bzlmod with Bazel 6:
Add to your MODULE.bazel file:
bazel_dep(name = "aspect_rules_py", version = "0.7.0")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 = "75179b67f8c187916476c7861ff3453b437614b35cd20c763738b643f49e59f7",
strip_prefix = "rules_py-0.7.0",
url = "https://github.com/aspect-build/rules_py/releases/download/v0.7.0/rules_py-v0.7.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()
# "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
- feat: switch to creation of venv without Python or pip by @mattem in #233
- chore: BCR testing on Bazel 6 and 7 by @alexeagle in #247
- chore(deps): update dependency bazel_skylib to v1.5.0 by @renovate in #225
- chore(deps): update dependency pluggy to v1.4.0 by @renovate in #253
- chore(deps): update dependency io_bazel_rules_go to v0.46.0 by @renovate in #252
- chore(deps): update aspect_gcc_toolchain digest to ff3298d by @renovate in #208
- chore(deps): update io_bazel_rules_docker digest to 3040e1f by @renovate in #209
- chore(deps): update rules_python digest to c6941a8 by @renovate in #222
- chore: don't rebase renovate diffs by @mattem in #257
- chore(deps): update dependency django to v4.2.10 [security] by @renovate in #256
- chore(deps): update dependency exceptiongroup to v1.2.0 by @renovate in #251
- feat: detect prerelease, use source bins by @alexeagle in #258
- fix: move toolchain registration to different package by @mattem in #265
- feat: support Bazel 6 by @alexeagle in #266
- chore: green up main CI by @alexeagle in #267
- Remove openssl by @btobolaski in #269
- chore: add release rules for binaries by @mattem in #280
- Update rules_python dependency by @sfc-gh-dszot in #279
- chore: bump rules_python by @alexeagle in #282
- feat: GHA release automation for rust bins by @alexeagle in #281
- chore: rename release artifacts to match rust convention by @alexeagle in #285
- feat: remove checked-in Rust binaries by @alexeagle in #286
- feat: don't require users to build tools from source by @alexeagle in #287
- Add gazelle config note by @alexeagle in #288
New Contributors
- @btobolaski made their first contribution in #269
- @sfc-gh-dszot made their first contribution in #279
Full Changelog: v0.6.0...v0.7.0