You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using a package with an epoch version, e.g., "1!1.0.0", building the package with poetry creates a wheel with the filename containing "1_1.0.0", replacing the ! with a _following PEP-427.
However, pip expects the wheel to have a version name containing "1!1.0.0", and fails with message "ERROR: Could not build wheels for , which is required to install pyproject.toml-based projects".
Expected behavior
I'd expect pip to follow PEP-427 and accept a wheel containing "1_1.0.0" instead of "1!1.0.0".
pip version
22.2.2
Python version
3.9.13
OS
macOS 11
How to Reproduce
Create a poetry package with a non-zero epoch, e.g., 1!1.0.0.
The rule you referenced from PEP 427 is outdated. The most up-to-date and canonical specification of wheel file names (among other things) can be found on packaging.python.org:
Version numbers should be normalised according to PEP 440. Normalised version numbers cannot contain -.
A wheel builder should retain the ! character, and Poetry’s current implementation is incorrect.
Description
See python-poetry/poetry#6466.
Using a package with an epoch version, e.g., "1!1.0.0", building the package with poetry creates a wheel with the filename containing "1_1.0.0", replacing the
!
with a_
following PEP-427.However, pip expects the wheel to have a version name containing "1!1.0.0", and fails with message "ERROR: Could not build wheels for , which is required to install pyproject.toml-based projects".
Expected behavior
I'd expect pip to follow PEP-427 and accept a wheel containing "1_1.0.0" instead of "1!1.0.0".
pip version
22.2.2
Python version
3.9.13
OS
macOS 11
How to Reproduce
1!1.0.0
.pip install .
.Output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: