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
I am on the latest stable Poetry version, installed using a recommended method.
I have searched the issues of this repo and believe that this is not a duplicate.
I have consulted the FAQ and blog for any relevant entries or release notes.
If an exception occurs when executing a command, I executed it again in debug mode (-vvv option) and have included the output below.
Issue
After running poetry install, there is a file direct_url.json under en_core_web_sm-3.5.0.dist-info, with the following contents (below I formatted it for readability):
The colon: separator after sha256 is does not comply with the PyPA spec:
A deprecated hash key (type string) MAY be present for backwards compatibility purposes, with value <hash-algorithm>=<expected-hash>.
It should be equals sign.
Because of that issue, pip v23.0 crashes when trying to list packages in a Poetry environment that contains archives installed from URL - see pypa/pip#11773 for details.
The text was updated successfully, but these errors were encountered:
diff --git a/src/poetry/installation/executor.py b/src/poetry/installation/executor.py
index 0496a5f8..e5582413 100644
--- a/src/poetry/installation/executor.py+++ b/src/poetry/installation/executor.py@@ -798,7 +798,8 @@ class Executor:
archive_info = {}
if package.name in self._hashes:
- archive_info["hash"] = self._hashes[package.name]+ algorithm, value = self._hashes[package.name].split(":")+ archive_info["hashes"] = {algorithm: value}
reference = {"url": package.source_url, "archive_info": archive_info}
(and similar a few lines down in _create_file_url_reference)
probably, if anyone wants to put together a merge request and drive this through.
The number of testcases that fail on making that change - zero - suggests a gap that should probably be filled at the same time (which I am too lazy to fill myself!)
Poetry version: 1.3.2
Python version: 3.8.16
OS version and name: Ubuntu 20.04.5 LTS (Focal Fossa)
pyproject.toml: https://gist.github.com/chopeen/ab18e5490fad88698ac6ed2dd5ba4435
I am on the latest stable Poetry version, installed using a recommended method.
I have searched the issues of this repo and believe that this is not a duplicate.
I have consulted the FAQ and blog for any relevant entries or release notes.
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option) and have included the output below.Issue
After running
poetry install
, there is a filedirect_url.json
underen_core_web_sm-3.5.0.dist-info
, with the following contents (below I formatted it for readability):The colon
:
separator aftersha256
is does not comply with the PyPA spec:It should be equals sign.
Because of that issue, pip v23.0 crashes when trying to list packages in a Poetry environment that contains archives installed from URL - see pypa/pip#11773 for details.
The text was updated successfully, but these errors were encountered: