Implement Extended Version Comparisons (Ranges, Hyphens, Tilde...) #241
Labels
Enhancement
Not a bug, but increases or improves in value, quality, desirability, or attractiveness
Question
Unclear or open issue subject for debate
Release_3.x.y
Only for the major release 3
Situation
Currently,
semver.VersionInfo
semver.Version
contains amatch
method. However, it does support only a limited number of comparisons. For example,~
or^
as known in NPM is unknown.Proposal
Add an additional class which provides all the necessary functionality. How this is implemented is a matter of design. 😉
I'd suggest to add this after major 3 is released.
This could be the use cases (I use a class
Spec
here, but the naming is subject to change):Depending on how we want to design it, it could also influence, for example,
semver.Version.match
. Maybe we should (re)move that and move this functionality into a futureSpec
class? Wouldn't it a bit more appropriate there?@python-semver/reviewers What do you think about this idea? Any preferences?
Grammar
See Also
The text was updated successfully, but these errors were encountered: