question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

In 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:closed
  • Created 7 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
k-bxcommented, Nov 29, 2016

@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 😃

0reactions
scls19frcommented, Oct 1, 2019

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found