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

fix without_extras() for marker unions #415

Merged
merged 2 commits into from
Jul 13, 2022

Conversation

dimbleby
Copy link
Contributor

@dimbleby dimbleby commented Jul 13, 2022

Fixes python-poetry/poetry#5999

It's clearly inconsistent that parse_marker('extra == "foo"').without_extras() is AnyMarker() whereas parse_marker('extra == "foo" or extra == "bar"').without_extras() was EmptyMarker().

This caused python-poetry/poetry#5999 at https://github.com/python-poetry/poetry/blob/266e8d2b3b27454f88cc569269ca9ea842faf024/src/poetry/puzzle/provider.py#L743-#L748

@sonarcloud
Copy link

sonarcloud bot commented Jul 13, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@radoering radoering merged commit 7af680c into python-poetry:main Jul 13, 2022
@dimbleby dimbleby deleted the marker-union-without-extras branch July 13, 2022 16:26
bostonrwalker pushed a commit to bostonrwalker/poetry-core that referenced this pull request Aug 29, 2022
* fix without_extras() for marker unions

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

poetry 1.2.0 solves extra dependencies incorrectly
2 participants