(vercmp a b)
Compares two version numbers according to the rules set forth in the Debian Policy Manual.
Parse a Debian version into its epoch and alternating non-numeric and numeric parts.
(vercmp a b)
Compares two version numbers according to the rules set forth in the Debian Policy Manual.
Parse a Debian version into its epoch and alternating non-numeric and numeric parts.
(vercmp a b)
Compare Maven versions according to Apache Maven ComparableVersion rules.
Tokens are tagged as :number, :text, or :separator. The parser keeps ASCII digit runs separate from text and preserves dots and hyphens for the nested Maven item builder.
(vercmp a b)
Compare two version identifiers according to PEP 440. Invalid version identifiers raise an error. Local version labels only affect ordering when the public versions are otherwise equal.
Parse and normalize a Python PEP 440 version identifier. The result contains epoch, release segments, pre-release, post-release, development-release, and local-version components; decimal values remain strings for arbitrary length.
(vercmp a b)
Compare RubyGems Gem::Version strings. Numeric segments are compared by their decimal values, strings sort before numbers, prerelease strings sort before release numbers, and insignificant trailing zero segments compare equal. Invalid version strings raise an error.
Leading and trailing whitespace is accepted, as is an empty version (which becomes zero). Hyphens are represented as the prerelease marker “pre”.
(vercmp a b)
Compare two version numbers according to the rules found at https://semver.org/#semantic-versioning-200 .
Parse a Semantic Versioning 2.0.0 version into its core, pre-release, and build metadata parts.
(vercmp a b)
Compare Maven versions according to Apache Maven ComparableVersion rules.
Tokens are tagged as :number, :text, or :separator. The parser keeps ASCII digit runs separate from text and preserves dots and hyphens for the nested Maven item builder.
(vercmp a b)
Compare two version identifiers according to PEP 440. Invalid version identifiers raise an error. Local version labels only affect ordering when the public versions are otherwise equal.
Parse and normalize a Python PEP 440 version identifier. The result contains epoch, release segments, pre-release, post-release, development-release, and local-version components; decimal values remain strings for arbitrary length.
(vercmp a b)
Compare RubyGems Gem::Version strings. Numeric segments are compared by their decimal values, strings sort before numbers, prerelease strings sort before release numbers, and insignificant trailing zero segments compare equal. Invalid version strings raise an error.
Leading and trailing whitespace is accepted, as is an empty version (which becomes zero). Hyphens are represented as the prerelease marker “pre”.
(vercmp a b)
Compare two version numbers according to the rules found at https://semver.org/#semantic-versioning-200 .
Parse a Semantic Versioning 2.0.0 version into its core, pre-release, and build metadata parts.