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

Fix pulling the lowest release version of the package from PyPI #158

Closed irushchyshyn closed 6 years ago

irushchyshyn commented 6 years ago

After we switched to https://pypi.org/pypi, the order in which package_releases are returned has changed, and we now get releases starting from oldest to the most recent. As we depend on that ordering, pyp2rpm was creating a spec file for the lowest version of the package.

The integration tests did not catch that, because we specify version with -v option to avoid broken tests every time the package gets updated on PyPI.

mcyprian commented 6 years ago

Thanks for fixing this @irushchyshyn.