Sort Simple API detail page releases#1272
Conversation
|
Behaviour before this patch: https://packages.redhat.com/trusted-libraries/python/aiobotocore/ |
gerrod3
left a comment
There was a problem hiding this comment.
Was this requested by someone? Not sure it is needed, from the PEP:
Note that because servers may hold “legacy” data from before the adoption of PEP 440, version strings currently cannot be required to be valid PEP 440 versions, and therefore cannot be assumed to be orderable using the PEP 440 rules. However, servers SHOULD use normalised PEP 440 versions where possible.
|
@gerrod3 This was not requested, but when I started working on the yank feature, I noticed there were tens of unsorted files in Simple API and was not able to find the latest release because of this. I also remember that this used to be sorted some time ago (we did a naive sorting, for example: Edit: https://pypi.org/simple/twine/ is sorted, so I would like our Simple API to be sorted as well. |
2292e57 to
66cb745
Compare
Assisted By: Claude Opus 4.6
66cb745 to
faca8dc
Compare
|
Updated to use the same approach as PyPI uses - https://github.com/pypi/warehouse/blob/main/warehouse/packaging/utils.py#L69 |
📜 Checklist
See: Pull Request Walkthrough