semver-object
See original GitHub issueIn my opinion your approach to parsing is quite “unpythonic”, I would prefer smth like this:
info = semver('1.0.0')
that would allow easy comparison with
>> semver('1.0.0') > semver('2.0.0')
>> False
(yes I know there’s semver.compare
for that)
Python is a object-orientated language after all 😉
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
semver - npm
The semantic version parser used by npm.. Latest version: 7.3.8, last published: 3 months ago. Start using semver in your project by running ......
Read more >theory/semver: Semantic version object for Perl - GitHub
This module subclasses version to create semantic versions, as defined by the Semantic Versioning 2.0.0 Specification The salient points of the ...
Read more >Semantic Versioning 2.0.0 | Semantic Versioning
Semantic Versioning 2.0.0. Summary. Given a version number MAJOR.MINOR.PATCH, increment the: MAJOR version when you make incompatible API changes ...
Read more >semver: Basics
The parse_version function parses a character vector containing valid semantic versioning strings returning an “svlist” object. library(semver) ...
Read more >Semver (semver4j 3.1.0 API) - javadoc.io
Class Semver · Nested Class Summary · Constructor Summary · Method Summary · Methods inherited from class java.lang.Object · Constructor Detail · Method...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Thor77 ah, I see what you mean. So, if you want to make a nice PR implementing a Semver class with all the object-oriented functionality, I wouldn’t mind accepting it 😃
@Thor77 I think after PR #88 and #141 we can close this (quite old) issue! Please feel to reopen if you think that’s necessary.