Skip to content

Single marker union simplifications - #299

Merged
neersighted merged 1 commit into
python-poetry:masterfrom
radoering:single-marker-union-simplifications
Mar 12, 2022
Merged

neersighted merged 1 commit into
python-poetry:masterfrom
radoering:single-marker-union-simplifications

Conversation

@radoering

Copy link
Copy Markdown
Member

Relates-to: python-poetry/poetry#5192

Allows the following new simplifications:
sys_platform == "linux" or sys_platform != "win32" -> sys_platform != "win32"
python_version == "3.6" or python_version > "3.6" -> python_version >= "3.6"
python_version == "3.6" or python_version < "3.6" -> python_version <= "3.6"
python_version < "3.6" or python_version > "3.6" -> python_version != "3.6"

Comment thread src/poetry/core/version/markers.py
@radoering
radoering force-pushed the single-marker-union-simplifications branch 2 times, most recently from b8cf6ec to 6c509e4 Compare March 5, 2022 20:47
@radoering
radoering force-pushed the single-marker-union-simplifications branch from 6c509e4 to aff8819 Compare March 9, 2022 18:55
@radoering
radoering force-pushed the single-marker-union-simplifications branch from aff8819 to a8a6197 Compare March 10, 2022 05:37
@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
1.8% 1.8% Duplication

@radoering
radoering requested a review from neersighted March 12, 2022 18:46
@neersighted
neersighted merged commit 3ba4cbc into python-poetry:master Mar 12, 2022
@radoering
radoering deleted the single-marker-union-simplifications branch November 24, 2024 12:39
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