Update dependency rules_python to v0.22.0 #3135
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.21.0
->0.22.0
Release Notes
bazelbuild/rules_python
v0.22.0
Compare Source
Notable and Breaking Changes
Bzlmod extension paths have changed
As part of fixing some fundamental issues with the bzlmod support, we had to change the path to our extensions. Instead of all extensions being in a single
extensions.bzl
file, each extension is in its own file. Users must update the file path in theiruse_repo()
statements as follows:use_extension("@​rules_python//python:extensions.bzl", "python")
->use_extension("@​rules_python//python/extensions:python.bzl", "python")
use_extension("@​rules_python//python:extensions.bzl", "pip")
->use_extension("@​rules_python//python/extensions:pip.bzl", "pip")
The following
sed
commands should approximate the necessary changes:See
examples/bzlmod_build_file_generation/MODULE.bazel
for an example of the new paths.Lockfile output churn
The output of lockfiles has slightly changed. Though functionally the same, their integrity hashes will change.
Using Bzlmod with Bazel 6
NOTE: Bzlmod support is still in beta.
Add to your
MODULE.bazel
file:Using WORKSPACE
Paste this snippet into your
WORKSPACE
file:Gazelle plugin
Paste this snippet into your
WORKSPACE
file:What's Changed
tags
attribute. by @rickeylev in https://github.com/bazelbuild/rules_python/pull/1191example/build_file_generation/README.md
by @ofey404 in https://github.com/bazelbuild/rules_python/pull/1164New Contributors
Full Changelog: bazelbuild/rules_python@0.21.0...0.22.0
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Renovate Bot.