rbarrois / python-semanticversion

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

More flexible parsing #92

Closed mcandre closed 1 year ago

mcandre commented 4 years ago

Please treat missing major, minor, patch, and/or build values as zero. That's how the vast majority of real world version numbers work.

rbarrois commented 4 years ago

Have you taken a look at the Version.coerce() API?

>>> Version.coerce('1.2')
Version('1.2.0')