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

Add support for PEP 730 iOS tags. #832

Merged
merged 10 commits into from
Oct 2, 2024
Merged

Conversation

freakboy3742
Copy link
Contributor

@freakboy3742 freakboy3742 commented Sep 11, 2024

PEP 730 adds support for iOS as a supported platform. This PR adds support for determining the platform tags compatible with the current iOS installation.

iOS version support is similar to macOS; if the current platform specifies a version of X.Y, any wheel tagged with a binary version <= X.Y should be compatible. This PR uses 12.0 as the minimum possible iOS version tag to check, as that is the oldest version that is known to have sufficient features to run CPython.

It will check every possible minor version X.0 - X.9; this does result in iOS minor versions that don't exist (e.g., there was no version 12.6-12.9). Having only legal versions would require constant updating of the source; having an extra few tags should only a represent a minor overhead when evaluating candidate wheels, and there's never been an iOS version with a minor > 8 (14.8 and 15.8).

freakboy3742 added a commit to freakboy3742/pip that referenced this pull request Sep 11, 2024
@brettcannon brettcannon self-assigned this Sep 26, 2024
Copy link
Member

@brettcannon brettcannon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally looks good, but the tag order looks inverted.

src/packaging/tags.py Outdated Show resolved Hide resolved
src/packaging/tags.py Outdated Show resolved Hide resolved
@brettcannon brettcannon enabled auto-merge (squash) October 2, 2024 21:53
@brettcannon brettcannon merged commit eefade3 into pypa:main Oct 2, 2024
31 checks passed
@freakboy3742 freakboy3742 deleted the ios-support branch October 2, 2024 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants