pypi / warehouse

The Python Package Index
https://pypi.org
Apache License 2.0
3.6k stars 968 forks source link

Recommend manylinux wheels in the Error 400 response for "linux" package uploads #6545

Open ncoghlan opened 5 years ago

ncoghlan commented 5 years ago

What's the problem this feature will solve? Providing better guidance to users when they fail to upload a wheel with a "linux" platform tag

Currently these users get an opaque error message like "HTTPError: 400 Client Error: Binary wheel 'treap-1.39-cp36-cp36m-linux_x86_64.whl' has an unsupported platform tag 'linux_x86_64'. for url: https://test.pypi.org/legacy/"

Describe the solution you'd like

Additional context

This feature request was prompted by Dan Stromberg's issue report in https://mail.python.org/archives/list/distutils-sig@python.org/message/RSJ57E343I7NVB6QDFFBD4QNTHRVAYOT/

Fixing this would likely require at least an initial attempt at addressing https://github.com/pypa/packaging.python.org/issues/637, as there isn't currently a good end user facing page for a custom error page to link to (the manylinux and auditwheel project pages aren't suitable)


Good First Issue: This issue is good for first time contributors. If you've already contributed to Warehouse, work on another issue without this label instead. If there is not a corresponding pull request for this issue, it is up for grabs. For directions for getting set up, see our Getting Started Guide. If you are working on this issue and have questions, feel free to ask them here, #pypa-dev on Freenode, or the pypa-dev mailing list.

di commented 5 years ago

I added the good first issue label to this issue.

di commented 4 years ago

Blocked on https://github.com/pypa/packaging.python.org/issues/637.