pip accepts non-PEP440 version 0.1_1
in wheel file name
#12914
Labels
type: bug
A confirmed bug or unintended behavior
Description
I wanted to replace pip's custom wheel filename regex with the standard parse_wheel_filename.
However I found that the old regex accepts non-PEP440 syntax and it is even tested for.
The version
0.1_1
gets coerced by pip to0.1-1
, whose canonical form is0.1.post1
.Expected behavior
Pip shouldn't implement its own wheel filename parsing.
Assuming that is accepted, does this need to go through a depreciation cycle?
pip version
24.2
Python version
3.12
OS
Linux
How to Reproduce
simple-0.1_1-py2-none-any.whl
Output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: