question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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 (-vvv option).
  • 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:closed
  • Created a year ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
dimblebycommented, Sep 11, 2022

I’m now pretty sure that the version being passed to escape_version() is already normalized and escape_version() is simply counterproductive and wants removing altogether.

0reactions
dimblebycommented, Sep 18, 2022
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found