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

Marker simplifications #282

Merged
merged 2 commits into from
Feb 26, 2022

Conversation

dimbleby
Copy link
Contributor

@dimbleby dimbleby commented Feb 4, 2022

Resolves: python-poetry#

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

Markers get complicated; I've no intention of trying to solve this in full generality but here are a couple of pieces of low-hanging fruit to improve some cases.

In particular the first commit was motivated by a real life project in which poetry export gave the marker python_version >= "3.6" or python_version >= "3.6", which looked a bit sad.

@sonarcloud
Copy link

sonarcloud bot commented Feb 4, 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.3% 0.3% Duplication

Copy link
Member

@radoering radoering left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. 👍 I'm currently on the same track because every marker simplification makes python-poetry/poetry#4695 better - just grasping for some higher hanging fruit. I hope I can reach some. 😉

@finswimmer finswimmer merged commit 8ce6c6c into python-poetry:master Feb 26, 2022
@dimbleby dimbleby deleted the marker-simplifications branch February 26, 2022 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants