pypi / legacy

This PyPI is no more! See https://github.com/pypa/warehouse.
Other
61 stars 46 forks source link

Wheels cannot be uploaded for versions that start with a letter #128

Closed ewdurbin closed 8 years ago

ewdurbin commented 10 years ago

Originally reported by: Jaime Marquínez Ferrándiz (Bitbucket: jaimeMF, GitHub: jaimeMF)


I was trying to upload a wheel for my package: youtube_dl_server (https://github.com/jaimeMF/youtube-dl-api-server/tree/wheel) and I was always getting HTTP Error 400: Binary wheel for an unsupported platform when running python setup.py bdist_wheel upload.

I think that the problem is whith the wheel_file_re in webui.py, if I get the match object (with the filename youtube_dl_server-alpha.5-py2.py3-none-any.whl) the plat group is 'none-any' (it should be 'any'), that's the reason why it raises the error later. Changing the version to something like 0.1 allows to upload the wheel.

Maybe I should just change the version scheme, but I thought you would want to know the problem. If you need more info, please ask.


ewdurbin commented 9 years ago

Original comment by Donald Stufft (Bitbucket: dstufft, GitHub: dstufft):


PEP 440 doesn't allow this, and we now enforce PEP 440.