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
When given the above pyproject.toml file, running poetry lock on Linux generates the following poetry.lock:
[[package]]
name = "test"version = "1.0"description = ""category = "main"optional = falsepython-versions = "*"
[package.source]
type = "file"url = "wheels/test-1.0-cp34-abi3-win_amd64.whl"
Also, poetry export outputs:
test @ file:///home/nyuszika7h/example/wheels/test-1.0-cp34-abi3-win_amd64.whl; sys_platform == "win32" or sys_platform == "linux" or sys_platform == "darwin"
The expected behavior would be to include 3 separate entries, one for each platform.
Interestingly enough, poetry install is smart enough to pick the correct version for the platform despite the incorrect locking. But the lock file is incomplete, and the requirements.txt output is just completely wrong.
The text was updated successfully, but these errors were encountered:
If the dependencies are provided as URLs rather than local files, it seems like it's even worse: poetry install actually picks the incorrectly locked Windows version for Linux as well.
I also have a similar issue with poetry 1.2.0b1 locking some dependencies as windows and creating a requirements.txt mentioning windows, and thus install failed on a system I can only use requirements.txt - poetry 1.1.13 did resolve the same pyproject.toml correctly.
If helpful, I can create an Issue for that with more details.
-vvv
option).Issue
When given the above
pyproject.toml
file, runningpoetry lock
on Linux generates the followingpoetry.lock
:Also,
poetry export
outputs:The expected behavior would be to include 3 separate entries, one for each platform.
Interestingly enough,
poetry install
is smart enough to pick the correct version for the platform despite the incorrect locking. But the lock file is incomplete, and the requirements.txt output is just completely wrong.The text was updated successfully, but these errors were encountered: