fedora-python / pyp2rpm

Tool to convert a package from PyPI to RPM SPECFILE or to generate SRPM.
MIT License
123 stars 39 forks source link

Package names are not normalized #144

Closed encukou closed 6 years ago

encukou commented 6 years ago

pip normalizes package names as per PEP 503, so pip install flask and pip install Flask will both work. However, pyp2rpm doesn't seem to do this:

$ pyp2rpm flask
Package "flask" could not be found on PyPI.
irushchyshyn commented 6 years ago

Seems like this is a known issue with PyPI XMLRPC API (that we are using), see https://github.com/pypa/pypi-legacy/issues/418.

As suggested in the issue, we can point the client to the warehouse installation, where the issue is already fixed. The change needed is here and normalization will work. However, as it is a pre-production deployment of Warehouse, I am not sure if it is time to change it.