Skip to content

Accepted macOS tags don't match canonical list. #17566

@freakboy3742

Description

@freakboy3742

Describe the bug

The list of architecture tags accepted for macOS includes:

_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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛requires triagingmaintainers need to do initial inspection of issue

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions