semver icon indicating copy to clipboard operation
semver copied to clipboard

Fix compatible prerelease clause (~=7.0.0rc1)

Open ddelange opened this issue 5 years ago • 0 comments

Before this change the prerelease rc1 in e.g. ~=7.0.0rc1 would be lost on the low end:

>>> vrange = parse_single_constraint('~=7.0.0rc1')
>>> vrange.min
<Version 7.0.0>

After:

>>> vrange = parse_single_constraint('~=7.0.0rc1')
>>> vrange.min
<Version 7.0.0rc1>

ddelange avatar Oct 07 '20 20:10 ddelange