rbarrois / python-semanticversion

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

alter carat matching to mirror NPM behavior #62

Closed paulortman closed 5 years ago

paulortman commented 7 years ago

NPM does not consider prereleases (-alpha, -rc1, -beta) when matching using the carat (^) specifier. This change alters behavior to match that of NPM.

Addresses issue #61

davegaeddert commented 7 years ago

May also be worth adding a couple new test cases, particularly those that have a pre-release in the spec where it looks like it would include pre-releases >= the spec: image

ivankravets commented 6 years ago

@rbarrois have you abandoned this project? Could you grant permissions to this repository the active contributors? Thanks!

jayvdb commented 5 years ago

Try restarting https://travis-ci.org/rbarrois/python-semanticversion/jobs/297076406

The same job passed on my PR.

rbarrois commented 5 years ago

Hey,

Sorry for the late reaction; this feature has been included as part of the "multiple syntaxes available" rework; the NpmSpec should now offer a fully-compliant implementation of the NPM range syntax :)