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

Improve constraint union #283

Merged
merged 3 commits into from
Feb 26, 2022

Conversation

radoering
Copy link
Member

Preliminary step for improving the union of markers.

Allows the following new simplifications:

Constraint("win32").union(Constraint("win32")) == Constraint("win32")
Constraint("win32").union(Constraint("linux", "!=")) == Constraint("linux", "!=")
Constraint("win32", "!=").union(Constraint("linux")) == Constraint("win32", "!=")
Constraint("win32", "!=").union(Constraint("linux", "!=")) == AnyConstraint()

@sonarcloud
Copy link

sonarcloud bot commented Feb 5, 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
0.9% 0.9% Duplication

@finswimmer finswimmer merged commit 4c17193 into python-poetry:master Feb 26, 2022
DavidVujic pushed a commit to DavidVujic/poetry-core that referenced this pull request Mar 26, 2022
* Refactoring in preparation to increase coverage by adding additional tests

* Increase test coverage for constraint intersection

* Improve constraint union
bostonrwalker pushed a commit to bostonrwalker/poetry-core that referenced this pull request Aug 29, 2022
* Refactoring in preparation to increase coverage by adding additional tests

* Increase test coverage for constraint intersection

* Improve constraint union
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants