Closed
Description
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 to 0.1-1
, whose canonical form is 0.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
- Install a wheel named
simple-0.1_1-py2-none-any.whl
Output
No response
Code of Conduct
- I agree to follow the PSF Code of Conduct.