fix(pypi): include platform-specific packages in unified hub - #4172
Open
hartikainen wants to merge 2 commits into
Open
hartikainen wants to merge 2 commits into
hartikainen wants to merge 2 commits into
Conversation
Use each hub's full wheel map when creating unified aliases so that platform-specific requirements resolve on supported platforms.
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The news fragment must include the required link to issue #4171 before approval.
Get a fresh assessment by requesting another Copilot review.
Review effort: Lite
Findings: 1
Open (1)
What changed in this PR
Fixes unified @pypi hub generation so platform-specific packages remain addressable while concrete hubs enforce platform compatibility.
Changes:
- Collect packages from each hub’s complete wheel map.
- Add Linux/Windows integration coverage.
- Add a PyPI news fragment.
| File | Description |
|---|---|
python/private/pypi/extension.bzl |
Includes all wheel-map packages in the unified hub. |
tests/integration/unified_pypi/MODULE.bazel |
Configures platform-specific requirements. |
tests/integration/unified_pypi/BUILD.bazel |
Defines test platforms. |
tests/integration/unified_pypi_test.py |
Adds platform resolution tests. |
tests/integration/unified_pypi/requirements_b_without_six.txt |
Adds non-Linux requirements. |
news/unified-platform-packages.fixed.md |
Documents the fix. |
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Clarified the inclusion of platform-specific packages in the unified @pypi hub for alias resolution on supported platforms. Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This branch has not been deployed
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.

(Done with help from an agent.)
The unified
@pypihub omits packages that appear only in some platform-specific requirements files. Dependencies such as@pypi//sixtherefore fail to resolve even on platforms where the selected concrete hub provides the package.This PR collects unified aliases from each hub’s complete wheel map so that platform-specific packages remain accessible. The concrete hub’s aliases continue to enforce platform compatibility.
Closes #4171.