Classes | |
class | Spec |
class | SpecItem |
class | Version |
Functions | |
def | _has_leading_zero |
def | _to_int |
def | compare |
def | identifier_cmp |
def | identifier_list_cmp |
def | match |
def | validate |
def rocon_semantic_version.base._has_leading_zero | ( | value | ) | [private] |
def rocon_semantic_version.base._to_int | ( | value | ) | [private] |
def rocon_semantic_version.base.compare | ( | v1, | |
v2 | |||
) |
def rocon_semantic_version.base.identifier_cmp | ( | a, | |
b | |||
) |
def rocon_semantic_version.base.identifier_list_cmp | ( | a, | |
b | |||
) |
Compare two identifier list (pre-release/build components). The rule is: - Identifiers are paired between lists - They are compared from left to right - If all first identifiers match, the longest list is greater. >>> identifier_list_cmp(['1', '2'], ['1', '2']) 0 >>> identifier_list_cmp(['1', '2a'], ['1', '2b']) -1 >>> identifier_list_cmp(['1'], ['1', '2']) -1
def rocon_semantic_version.base.match | ( | spec, | |
version | |||
) |
def rocon_semantic_version.base.validate | ( | version_string | ) |