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
Poetry version: 1.7.1
Python version: 3.12.1
OS version and name: Microsoft Windows [Version 10.0.19045.3803]
On windows adding a dependency via the full path name to a wheel file fails if the path is not in posix format. In my case, the drive letter was lowercase and and uppercase was expected. In the gist https://gist.github.com/dvht/68df196a22d93b2d62871b98419f5ceb I created an example from scratch and it contains the stack trace to the AssertionError
Howerver I debugged with the latest master ( 2024-01-03, https://github.com/dvht/poetry) and found that in poetry-core specification.py the the uppercase source_url string (posix converted name) is compared with the lowercase source_url string (command argument) and decided as not equal. This not expected since the same package and fails.
I log this here because I think the input could be sanitized with Path(argument).resolve().as_posix() somewhere near the start
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Poetry version: 1.7.1
Python version: 3.12.1
OS version and name: Microsoft Windows [Version 10.0.19045.3803]
On windows adding a dependency via the full path name to a wheel file fails if the path is not in posix format. In my case, the drive letter was lowercase and and uppercase was expected. In the gist https://gist.github.com/dvht/68df196a22d93b2d62871b98419f5ceb I created an example from scratch and it contains the stack trace to the AssertionError
Howerver I debugged with the latest master ( 2024-01-03, https://github.com/dvht/poetry) and found that in poetry-core specification.py the the uppercase source_url string (posix converted name) is compared with the lowercase source_url string (command argument) and decided as not equal. This not expected since the same package and fails.
I log this here because I think the input could be sanitized with Path(argument).resolve().as_posix() somewhere near the start
Beta Was this translation helpful? Give feedback.
All reactions