fedora-python / pyp2rpm

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

PyPI changed the download URL format #50

Closed torsava closed 8 years ago

torsava commented 8 years ago

Hi, PyPI recently completely changed the format of download links, therefore I suggest switching to the new URL format:

https://files.pythonhosted.org/packages/source/p/positional/positional-1.1.0.tar.gz

This new format should have a long term support: https://bitbucket.org/pypa/pypi/issues/438/#comment-27734791

Further discussion: https://bitbucket.org/pypa/pypi/issues/438/#comment-27734791

hroncok commented 8 years ago

Note: Currently pyp2rpm adds the new hashed URL in the Source filed.

torsava commented 8 years ago

Right. Updating to the above mentioned URL format is advisable because when updating the package to a new version, you only need to change the Version: tag and the URL will work, whereas with the hashed URLs you need to manually go to PyPI and copy the new URL each time.