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

Strategy to use ~= operator #225

Closed
uranusjr opened this issue Jan 20, 2021 · 2 comments · Fixed by #230
Closed

Strategy to use ~= operator #225

uranusjr opened this issue Jan 20, 2021 · 2 comments · Fixed by #230
Labels
⭐ enhancement Improvements for existing features

Comments

@uranusjr
Copy link

Is your feature request related to a problem? Please describe.

Currently pdm uses a <,>= syntax for the compatible version strategy. Most of the time, the version range can be written much more concisely with ~=. For example, the only difference between <5,>=4.2.1 and ~=4.2 is 4.2.1, which does not matter most of the time, being a patch release.

Describe the solution you'd like

The naming may be problematic. pdm calls the <,>= strategy “compatible”, but ~= is actually called the compatible release operator in PEP 440. So either pdm needs to invent something new for ~= (and potentially causes confusion to standard packaging), or change the name for <,>=.

@uranusjr uranusjr added the ⭐ enhancement Improvements for existing features label Jan 20, 2021
@frostming
Copy link
Collaborator

A minor behavior change from <5,>=4.2.1 to ~=4.2 does little harm I think?

@uranusjr
Copy link
Author

I wouldn’t care at all personally, at least 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⭐ enhancement Improvements for existing features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants