Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(whl_library): reimplement wheel platform parsing in starlark #1636

Merged
merged 11 commits into from
Dec 22, 2023

Conversation

aignas
Copy link
Collaborator

@aignas aignas commented Dec 20, 2023

It seems that the CI did not catch the macosx_10_9_universal2 wheels
edge case, which this new code is handling. I moved the implementation
to starlark because #1625 needs this.

No changelog is needed because the feature this is fixing/refactoring
an unreleased feature.

…parsing

It seems that the CI did not catch this and I am wondering if we run our
bzlmod example on a Mac. In the future I think that this code may need
to move to starlark, because the same parsing from wheel name to
platform identifiers is needed in bazelbuild#1685, but I'll do that in a separate
PR.

No changelog is needed because the feature this is fixing is unreleased
yet.
@aignas aignas requested a review from rickeylev December 20, 2023 00:22
@aignas aignas changed the title fix(whl_library): correctly handle osx universal2 wheel platform_tag parsing refactor(whl_library): reimplement wheel platform parsing in starlark Dec 20, 2023
aignas added a commit to aignas/rules_python that referenced this pull request Dec 20, 2023
python/private/whl_target_platform.bzl Outdated Show resolved Hide resolved
python/private/whl_target_platform.bzl Outdated Show resolved Hide resolved
python/private/whl_target_platform.bzl Outdated Show resolved Hide resolved
python/private/whl_target_platform.bzl Outdated Show resolved Hide resolved
python/private/whl_target_platform.bzl Outdated Show resolved Hide resolved
python/private/whl_target_platform.bzl Outdated Show resolved Hide resolved
python/private/whl_target_platform.bzl Outdated Show resolved Hide resolved
tests/private/whl_target_platform/BUILD.bazel Outdated Show resolved Hide resolved
python/private/BUILD.bazel Outdated Show resolved Hide resolved
@rickeylev rickeylev added this pull request to the merge queue Dec 22, 2023
Merged via the queue into bazelbuild:main with commit 02591a5 Dec 22, 2023
3 checks passed
@aignas aignas deleted the fix/universal2-mac-wheel-parsing branch May 13, 2024 06:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants