Skip to content

special case union of single marker with inverse#255

Merged
neersighted merged 1 commit intopython-poetry:masterfrom
dimbleby:union-with-inverse
Jan 27, 2022
Merged

special case union of single marker with inverse#255
neersighted merged 1 commit intopython-poetry:masterfrom
dimbleby:union-with-inverse

Conversation

@dimbleby
Copy link
Copy Markdown
Contributor

To avoid ending up with constraints like:

bar==7.8.9; platform_system != 'Windows' or platform_system == 'Windows'

Resolves: python-poetry#

  • Added tests for changed code.
  • Updated documentation for changed code.

Per comment at python-poetry/poetry#4824 (comment).

I have verified that this has the desired effect in the testcase added at python-poetry/poetry#4686

@dimbleby
Copy link
Copy Markdown
Contributor Author

Is "Poetry Downstream Tests" new? The first failure I think is a consequence of af08f1c; and the second failure is of course the point of this fix.

@neersighted
Copy link
Copy Markdown
Member

The Downstream tests are not new per-se. I think what we should do is 1. PR a fix for the _pretty_constraint fix, and 2. merge the exporter plugin, then merge this fix (making any needed changes to the plugin tests after).

To avoid ending up with constraints like:

bar==7.8.9; platform_system != 'Windows' or platform_system == 'Windows'
@sonarqubecloud
Copy link
Copy Markdown

SonarCloud Quality Gate failed.    Quality Gate failed

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

No Coverage information No Coverage information
0.0% 0.0% Duplication

@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 2 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Comment thread src/poetry/core/version/markers.py
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.

3 participants