You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which should match according to the rules composer does it. This is obviously currently not supported but I would really love it to have a method for something like this :)
@k-bx I've hacked together a bunch of code to parse it successfully, I'm trying to clean it up.
Since you're the author of an semver parser, how should I handle >=6?
This currently causes an exception because it's not valid semver and I currently translate it to >=6.0.0, which I'm not sure is correct. Do you have an opinion on this?
Yeah. My opinion is — need to make sure semver code is strictly following semver spec, and having the rest additional functionality kept separate and clearly stating that :)
@kpcyrd maybe you should ask at https://github.com/semver/semver to improve semver specification to add this concept of complex filters.
When a "standard" will emerge we will happily accept PR about it.
Activity
k-bx commentedon Mar 30, 2017
Hi! You can use a simple Python operators meanwhile to combine comparisons, but I wouldn't mind having a separate API for parsing something like this.
Care to make a PR?
kpcyrd commentedon Mar 30, 2017
@k-bx I've hacked together a bunch of code to parse it successfully, I'm trying to clean it up.
Since you're the author of an semver parser, how should I handle
>=6?This currently causes an exception because it's not valid semver and I currently translate it to
>=6.0.0, which I'm not sure is correct. Do you have an opinion on this?k-bx commentedon Mar 30, 2017
Yeah. My opinion is — need to make sure semver code is strictly following semver spec, and having the rest additional functionality kept separate and clearly stating that :)
s-celles commentedon May 15, 2018
@kpcyrd maybe you should ask at https://github.com/semver/semver to improve semver specification to add this concept of complex filters.
When a "standard" will emerge we will happily accept PR about it.