Repository navigation
feat(pypi): support target_platforms = ["*"] in pip.parse - #4455
Merged
rickeylev merged 6 commits intoNov 15, 2026
Merged
Conversation
Allow selecting all of the platforms configured with `pip.default` without listing them one by one. This is useful for hubs that need to support cross-building for any of the configured platforms, e.g. a hub that provides a tool for every toolchain.
Collaborator
Author
|
This PR was drafted by an AI coding agent (Claude Code) working for @aignas as part of the plan in #3902. It stays a draft until @aignas has reviewed it. Review comments will be handled by @aignas, possibly with the help of the agent; any agent-written replies will be marked as such. Agent-generated comment, posted automatically on behalf of the user. |
…s = ["*"] When `target_platforms = ["*"]` is used with a `uv.lock` file, add the platform independent wheel of a package, if there is one, as a fallback for the Python version. The platforms that are not configured with `pip.default` can then still use the package, whilst the configured platforms keep using the more specific wheels.
…platforms = ["*"]" This reverts commit 5149b91.
rickeylev
approved these changes
Nov 14, 2026
rickeylev
left a comment
Collaborator
There was a problem hiding this comment.
LGTM in concept. So this just makes it easier to register a hub for whatever the default platforms were configured as? Makes sense.
I told my clanker to auto-post code review findings
rickeylev
reviewed
Nov 14, 2026
Clarify in docs and news that `target_platforms = ["*"]` selects all built-in default platforms in addition to custom `pip.default` platforms, and wrap `uv.lock` test fixtures within line-length limits.
rickeylev
approved these changes
Nov 15, 2026
rickeylev
enabled auto-merge
November 15, 2026 00:02
Merged
via the queue into
bazel-contrib:main
with commit Nov 15, 2026
e421e42
15 of 17 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Allow selecting all built-in default platforms and any custom platforms
configured with
pip.defaultby usingtarget_platforms = ["*"]inpip.parse, without listing them one by one.This is useful for hubs that need to support cross-building for any of
the configured platforms, e.g. a hub that provides a tool for every
registered toolchain, such as the
coveragetool.Work towards #3902