Skip to content

Comments

Marker fixes#380

Merged
neersighted merged 2 commits intopython-poetry:mainfrom
dimbleby:marker-fixes
May 29, 2022
Merged

Marker fixes#380
neersighted merged 2 commits intopython-poetry:mainfrom
dimbleby:marker-fixes

Conversation

@dimbleby
Copy link
Contributor

@dimbleby dimbleby commented May 28, 2022

First fix is I think cosmetic in unhittable code, the second finds a new marker simplification at intersection - code is analogous to the similar case in unions

elif (
isinstance(constraint_union, VersionConstraint)
and constraint_union.is_simple()
):
new_markers[i] = SingleMarker(
mark.name, constraint_union
)
included = True

without the fix the intersection looks like ... and python_version <= "3.6" and python_version >= "3.6"

dimbleby added 2 commits May 28, 2022 19:43
pretty sure that ~= are always ">=" and "<" so this is only a cosmetic
improvement
@sonarqubecloud
Copy link

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

@neersighted neersighted merged commit dfd1b39 into python-poetry:main May 29, 2022
@dimbleby dimbleby deleted the marker-fixes branch May 29, 2022 09:50
@radoering radoering mentioned this pull request Jul 9, 2022
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.

2 participants