Skip to content
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-core] intersection of markers not recognized as empty #4694

Closed
3 tasks done
radoering opened this issue Nov 1, 2021 · 1 comment · Fixed by python-poetry/poetry-core#226
Closed
3 tasks done
Labels
area/core Related to the poetry-core library kind/bug Something isn't working as expected

Comments

@radoering
Copy link
Member

  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).
  • OS version and name: any
  • Poetry version: current master
  • Link of a Gist with the contents of your pyproject.toml file: not applicable

Issue

The intersection of multi markers and marker unions is not recognized as empty for some cases. E.g., the following intersections which are empty are not recognized as empty:

  • 'python_version == "3.7"' and 'python_version < "3.7" or python_version >= "3.8"'
  • python_version >= "2" and python_version < "3" and python_version < "2" or python_version >= "3"

This can lead to the execution of unnecessary or even wrong paths in the program flow.

@radoering radoering added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Nov 1, 2021
@radoering radoering added the area/core Related to the poetry-core library label Jan 21, 2022
@abn abn removed the status/triage This issue needs to be triaged label Mar 3, 2022
Copy link

github-actions bot commented Mar 2, 2024

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/core Related to the poetry-core library kind/bug Something isn't working as expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants