Closed gordonmessmer closed 3 years ago
So if I understand this correctly, the versions will be sorted in "descending" order according to the version comparison algorithm from PEP 440? Then this LGTM.
I ended up here after trying to figure out why Copr PyPI source started picking the very first version of the package. Seems like PyPI now serves release list in ascending order and the change here is required for correct behavior of pyp2rpm
.
Coincidentally, this PR also fixes exception on --prerelease
flag caused by accessing self.versions
dict_keys object as an array.
pyp2rpm --prerelease ...
traceback@gordonmessmer do you think it's possible to tag a new release or cherry-pick this patch to Fedora package?
@decathorpe Would you review these changes?