Skip to content

fix without_extras() for marker unions#415

Merged
radoering merged 2 commits intopython-poetry:mainfrom
dimbleby:marker-union-without-extras
Jul 13, 2022
Merged

fix without_extras() for marker unions#415
radoering merged 2 commits intopython-poetry:mainfrom
dimbleby:marker-union-without-extras

Conversation

@dimbleby
Copy link
Copy Markdown
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

@sonarqubecloud
Copy link
Copy Markdown

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