wheel_file_re does not match version correctly
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: Debian 10.6
-
Poetry version: 1.1.4
-
Link of a Gist with the contents of your pyproject.toml file: https://gitlab.com/radek-sprta/blog/-/blob/master/pyproject.toml
Issue
wheel_file_re fails to match version for packages with single digit versions. Example is markdown-captions
package (filename markdown_captions-2-py3-none-any.whl
). Results in the following error:
• Installing markdown-captions (2): Failed
AttributeError
'NoneType' object has no attribute 'replace'
at ~/.poetry/lib/poetry/installation/chooser.py:27 in __init__
23│ raise InvalidWheelName("{} is not a valid wheel filename.".format(filename))
24│
25│ self.filename = filename
26│ self.name = wheel_info.group("name").replace("_", "-")
→ 27│ self.version = wheel_info.group("ver").replace("_", "-")
28│ self.build_tag = wheel_info.group("build")
29│ self.pyversions = wheel_info.group("pyver").split(".")
30│ self.abis = wheel_info.group("abi").split(".")
31│ self.plats = wheel_info.group("plat").split(".")
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:8 (3 by maintainers)
Top Results From Across the Web
5 Reasons why your Excel filter may not be working
Excel filter not working properly or as you would like it to? Here are some reasons why your Excel filter may not be...
Read more >can't install with Python 3.10 (#18335) · Issues · VTK ... - GitLab
Can 't install vtk on poythin 3.10. Default pip find no compatible version, installing from git give.
Read more >Guidelines and examples for sorting and filtering data by color
Filter and sort data by color to make data analysis easier and help show highlights and data trends at a quick glance.
Read more >lisp filter out results from list not matching predicate
I would like to point out that the function #'remove-if-not are deprecated in Common Lisp¹ where the filter would be written (remove-if ( ......
Read more >Filter Wheel QHYCFW3 | QHYCCD Astronomical & Scientific ...
This modification is used to judge if the colorwheel has arrived the target for the host software. Note 2: There is no this...
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
Fix is ready for review #3338
#3338 merged.