While discussing how to implement wheel installation support into setuptools, @dholth mentioned that the wheel package had its own implementation of PEP-425 parsing, that was different than the one in pip.
In order not to duplicate another piece of code, wouldn't it be better to lift pep425tags into packaging, which is vendored in both pip and setuptools?
And since the main consumer of these tags are functions that parse wheel filenames, what do you think about lifting the pip.wheel:Wheel class as well? (which would be better named WheelFilename, since pretty much all it does is parse information from a potential wheel filename to help deciding whether it should be downloaded/installed or not).
While discussing how to implement wheel installation support into
setuptools, @dholth mentioned that thewheelpackage had its own implementation of PEP-425 parsing, that was different than the one in pip.In order not to duplicate another piece of code, wouldn't it be better to lift
pep425tagsintopackaging, which is vendored in bothpipandsetuptools?And since the main consumer of these tags are functions that parse wheel filenames, what do you think about lifting the
pip.wheel:Wheelclass as well? (which would be better namedWheelFilename, since pretty much all it does is parse information from a potential wheel filename to help deciding whether it should be downloaded/installed or not).