-
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 doesn't parse python constraints when markers are present #4965
Comments
Root-Cause The issue is inside the function Indeed, consider
What needs to be fixed is the method To reproduce the issue
What happens is the code logic excludes populating python constraints when markers are present. But fixing this seems to require changes to |
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).Clarifies in-depth the common root-cause for several reported issues
#3444
#4959
#4958
Issue
poetry
fails to parse python constraints when markers appear.This should be supported as per the official documentation.
This also has a side effect on the performance and the lock file, as this way packages bypass early compatibility checks on versions; also wrong versions may get installed.
Reproduce
The following test confirms that
poetry
does not populate python constraints due to markersthen setting a breakpoint inside
complete_package
method givesFurthermore, due to the broken constraint poetry would pick up the wrong (1.3.2) version to install.
The text was updated successfully, but these errors were encountered: