-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.1.3 regression. poetry exports wrong constraints #3254
Comments
I have the same problem with the
In this scenario, But |
I feel like I start recognizing a pattern here... There is at least 1 (maybe 2) other issue like that, where something similar seems to happen. Two unrelated dependencies on the same library are incorrectly merged. |
I don't understand why markers should be propagated up the dependency tree. It looks like poetry/poetry/packages/locker.py Line 514 in de0b32c
|
@jonapich My case got fixed by the following diff:
Could you try if this also fixes your case? |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option).Issue
The linked pyproject.toml generates a broken requirements.txt (it wrongly applies
sys_platform=darwin
). But first off lets see the graph:as we can see the toplevel dependency
pyinstaller
directly requiresalthgraph
and thenmacholib
also requiresaltgraph
.Looking at
poetry.lock
we see:This tells us that
pyinstaller
depends onmacholib
on darwin systems. The export looks like this:Here
altgraph
is incorrectly labeled asdarwin
, propbably due to the fact thatmacholib
is only required ondarwin
and as such the constraints trickles down. This makes sense but should not happen if there is another dependency on the same package.The text was updated successfully, but these errors were encountered: