rbarrois / python-semanticversion

Semantic version comparison for Python (see http://semver.org/)
BSD 2-Clause "Simplified" License
281 stars 74 forks source link

Spec(`~=1.1.0`) matches Version(`1.2.0-foobar`) #72

Closed nathandines closed 5 years ago

nathandines commented 5 years ago

I would expect this to return False, but when comparing the versions mentioned in the title, I'm getting a True result. Is my interpretation of the rules incorrect, or is this a bug?

Example:

>>> semantic_version.match('~=1.1.0', '1.2.0-foobar')
True
rbarrois commented 5 years ago

It's a bug, but should be now fixed in master — sorry for the long delay!