Requires-Python error message should not sort versions numerically, not alphabetically #13367
Open
1 task done
Labels
good first issue
A good item for first time contributors to work on
state: awaiting PR
Feature discussed, PR is needed
type: enhancement
Improvements to functionality
Uh oh!
There was an error while loading. Please reload this page.
Description
In the following example, it looks to the human eye like all python versions >= 3.9 are supported by the package. However, since the versions are sorted alphabetically, 3.13 is placed between 3.1 and 3.2.
It would be a nicer user experience if 3.13 was placed at the end, after 3.9. It tricked me, at least.
If the disallowed versions were colored in red and the allowed version in green, that would make it even more obvious.
Expected behavior
Requires-Python !=2.7.*,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,!=3.7.*,!=3.8.*,>=3.9,!=3.13.*
pip version
25.1
Python version
3.13
OS
Windows and Ubuntu
How to Reproduce
This reproduces at least on Windows and Ubuntu, haven't checked Mac.
Output
Code of Conduct
The text was updated successfully, but these errors were encountered: