-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Describe the bug
The list of architecture tags accepted for macOS includes:
warehouse/warehouse/forklift/legacy.py
Lines 135 to 147 in 88bc28b
| _macosx_arches = { | |
| "ppc", | |
| "ppc64", | |
| "i386", | |
| "x86_64", | |
| "arm64", | |
| "intel", | |
| "fat", | |
| "fat32", | |
| "fat64", | |
| "universal", | |
| "universal2", | |
| } |
However, the official list of tags generated by CPython are:
https://github.com/python/cpython/blob/cdcacec79f7a216c3c988baa4dc31ce4e76c97ac/Lib/_osx_support.py#L546-L562
This means warehouse accepts fat32 (which isn't defined), but doesn't accept fat3 (which is).
Expected behavior
fat3 wheels should be accepted for upload.
fat32 wheels should be rejected.
To Reproduce
Attempt to upload a fat3 macOS wheel.
My Platform
macOS.
Additional context
The code fix is trivial - it's almost certainly a typo misreading fat3 as fat32. However, it's not clear if there's any additional fixes required on the backend - if there are any fat32 wheels that have been successfully uploaded.