Repository navigation
Conversation
…ion, golden harness (#18632)
…nvalid version (#18632)
Implements the macos branch of platformTags(): macosx_<M>_0_<fmt> for every major version M from the target's declared major down to 11, using the arch's binary-format list (x86_64: x86_64/intel/fat64/fat32/ universal2/universal; arm64: arm64/universal2). Pre-11 compatibility fallbacks are intentionally out of scope. Also rejects Target.MacMinor < 0 in validate(), matching the existing PyMinor/LibcMinor guards against a negative-cap Compile panic. Adds cp310_macos12_arm64 and cp312_macos14_x86_64 golden fixtures (generated via packaging.tags.mac_platforms, filtered to drop the pre-11 compatibility tail) plus a focused unit test on arch-dependent format lists and the 11-floor version walk.
…seTag tests (#18632)
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.
Implements the
tags/package per RFD 0001 Phase 0 (#18632): PEP 425/600/656 compatibility tags, target-parameterized (server-side; no host detection).What's here
Tag+ParseTag(3-field dot-Cartesian expansion).Target→Compile()→*Matcher(Tags()/Rank()/IsCompatible()).Compilevalidates the target and returnsErrUnsupportedTargetfor unsupported/malformed input (never panics).pytiers→cpXY-none-any→universals; manylinux/musllinux with an arch-dependent floor (x86_64/i686→2.5 + legacy aliases; aarch64/etc→2.17; riscv64→2.31; loongarch64→2.36); macOS 11+; windows.linux_<arch>accepted, ranked last among platforms within each ABI tier (PPM local-source/Git-builder wheels; PyPI rejects the tag).Correctness anchor: golden fixtures generated from Python
packaging(host-detection monkeypatched), committed undertags/testdata/withgen_goldens.py(pinned packaging==26.2). Tests read JSON only — no runtime Python.Review notes: RoboRev clean on every commit; final whole-branch review (Opus) verdict READY (no reachable
Compile()panic; ordering matches packaging across all 7 goldens). Deferred (tracked separately): PEP 703 free-threaded ABI, glibc→distro tables, pre-11 macOS, PyPy-specific ABI.Closes #18632.