We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
max_satisfying
This looks like a bug in max_satisfying to me.
from semver import max_satisfying versions = [ '49.0.0.2', '49.0.0.4', '49.0.0.5' ] range_ = '>=49' print(max_satisfying(versions, range_, loose=True, include_prerelease=True))
$ python max_satisfying.py 49.0.0.2
I would expect it to return 49.0.0.5, the highest (or max) version that satisfies.
49.0.0.5
Changing this
if max_ is None or max_sv.compare(v) == -1: # compare(max, v, true)
to this
if (max_ is None or max_sv.compare(v) == -1) or (max_sv.compare(v) == 0): # compare(max, v, true)
fixes it.
$ python max_satisfying.py 49.0.0.5
The text was updated successfully, but these errors were encountered:
Ah OK, if send me PR I will merging it.
Sorry, something went wrong.
No branches or pull requests
This looks like a bug in
max_satisfying
to me.I would expect it to return
49.0.0.5
, the highest (or max) version that satisfies.Changing this
to this
fixes it.
The text was updated successfully, but these errors were encountered: