Issue with filename for wheel with epoch version
See original GitHub issue- I am on the latest Poetry version.
- I have searched the issues of this repo and believe that this is not a duplicate.
- If an exception occurs when executing a command, I executed it again in debug mode (
-vvvoption).
- OS version and name: macOS 11
- Poetry version: 1.2.0
- Link of a Gist with the contents of your pyproject.toml file: n/a
Issue
When using a version number such as “1!1.0.0”, the wheels generated by poetry have a filename with “1_1.0.0”. This causes pip install to crash with the following error: “ERROR: Could not build wheels for *, which is required to install pyproject.toml-based projects”.
I believe that the following regular expression is at fault as it replaces the ! with _:
https://github.com/python-poetry/poetry/blob/6fe7f54a83c59131d4e291084c3496a0c513cfaa/poetry/masonry/builders/wheel.py#L197-L203
Issue Analytics
- State:
- Created a year ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
[Solved] ... is not a supported wheel on this platform
The fix is either to download the other version (32-bit if you downloaded 64-bit and vice versa) or change the wheel's file name...
Read more >Python build puts wrong version number in filenames
When I run python -m build , the tar and whl files that are created use the wrong version of my package in...
Read more >Problem with file::stat
Im pretty new to scripting with perl and i have a problem with ... my $epoch_timestamp = (stat($filename))[9]; print "Epoch seconds: " ....
Read more >PEP 440 – Version Identification and Dependency Specification
This PEP describes a scheme for identifying versions of Python software ... version identifiers can be readily incorporated as part of filenames and...
Read more >7. Releasing your package
We'll ignore the [N!] part, the version epoch, which is only used when ... If you find yourself having to write it at...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I’m now pretty sure that the version being passed to
escape_version()is already normalized andescape_version()is simply counterproductive and wants removing altogether.fixed in https://github.com/python-poetry/poetry-core/pull/469, this can be closed