-
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
poetry export
removes sys_platform
for transitive packages
#4671
Comments
I tried to debug this it seems that
And The issues seem to be in the Update: diff --git a/poetry/packages/locker.py b/poetry/packages/locker.py
index 6855c14c..37f7d435 100644
--- a/poetry/packages/locker.py
+++ b/poetry/packages/locker.py
@@ -253,9 +253,11 @@ class Locker:
if require.marker.is_empty():
require.marker = requirement.marker
else:
- require.marker = require.marker.intersect(
+ require_marker = require.marker.intersect(
requirement.marker
)
+ if not require_marker.is_empty():
+ require.marker = require_marker
require.marker = require.marker.intersect(locked_package.marker)
next_level_dependencies.append(require) |
I think this is a duplicate of #3511 |
@dimbleby You're right, it's a duplicate, and #4686 fixes the issue for me. @jbasila-orca I think you can close the issue |
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).After locking the dependencies and exporting with the command:
poetry export --dev --without-hashes
The list will contain
pywin32
without platform-specific. If we check the dependency tree withpoetry show --tree
we see thatpywin32
comes from a transitive dependency ofportalocker
:If we export the dependencies using
poetry export --dev --without-hashes
:Notice
pywin32
If we change the
pyproject.toml
to contain onlyportalocker
directly:and after
poetry lock
and thenpoetry export --dev --without-hashes
:pywin32
now hassys_platform
The text was updated successfully, but these errors were encountered: