Public Member Functions | |
def | __cmp__ |
def | __eq__ |
def | __ge__ |
def | __gt__ |
def | __hash__ |
def | __init__ |
def | __iter__ |
def | __le__ |
def | __lt__ |
def | __ne__ |
def | __repr__ |
def | __str__ |
def | coerce |
def | parse |
Public Attributes | |
build | |
major | |
minor | |
partial | |
patch | |
prerelease | |
Static Public Attributes | |
tuple | partial_version_re = re.compile('^(\d+)(?:\.(\d+)(?:\.(\d+))?)?(?:-([0-9a-zA-Z.-]*))?(?:\+([0-9a-zA-Z.-]*))?$') |
tuple | version_re = re.compile('^(\d+)\.(\d+)\.(\d+)(?:-([0-9a-zA-Z.-]+))?(?:\+([0-9a-zA-Z.-]+))?$') |
Private Member Functions | |
def | _coerce |
def | _comparison_functions |
def | _validate_identifiers |
def rocon_semantic_version.base.Version.__init__ | ( | self, | |
version_string, | |||
partial = False |
|||
) |
def rocon_semantic_version.base.Version.__cmp__ | ( | self, | |
other | |||
) |
def rocon_semantic_version.base.Version.__eq__ | ( | self, | |
other | |||
) |
def rocon_semantic_version.base.Version.__ge__ | ( | self, | |
other | |||
) |
def rocon_semantic_version.base.Version.__gt__ | ( | self, | |
other | |||
) |
def rocon_semantic_version.base.Version.__hash__ | ( | self | ) |
def rocon_semantic_version.base.Version.__iter__ | ( | self | ) |
def rocon_semantic_version.base.Version.__le__ | ( | self, | |
other | |||
) |
def rocon_semantic_version.base.Version.__lt__ | ( | self, | |
other | |||
) |
def rocon_semantic_version.base.Version.__ne__ | ( | self, | |
other | |||
) |
def rocon_semantic_version.base.Version.__repr__ | ( | self | ) |
def rocon_semantic_version.base.Version.__str__ | ( | self | ) |
def rocon_semantic_version.base.Version._coerce | ( | cls, | |
value, | |||
allow_none = False |
|||
) | [private] |
def rocon_semantic_version.base.Version._comparison_functions | ( | cls, | |
partial = False |
|||
) | [private] |
def rocon_semantic_version.base.Version._validate_identifiers | ( | cls, | |
identifiers, | |||
allow_leading_zeroes = False |
|||
) | [private] |
def rocon_semantic_version.base.Version.coerce | ( | cls, | |
version_string, | |||
partial = False |
|||
) |
Coerce an arbitrary version string into a semver-compatible one. The rule is: - If not enough components, fill minor/patch with zeroes; unless partial=True - If more than 3 dot-separated components, extra components are "build" data. If some "build" data already appeared, append it to the extra components Examples: >>> Version.coerce('0.1') Version(0, 1, 0) >>> Version.coerce('0.1.2.3') Version(0, 1, 2, (), ('3',)) >>> Version.coerce('0.1.2.3+4') Version(0, 1, 2, (), ('3', '4')) >>> Version.coerce('0.1+2-3+4_5') Version(0, 1, 0, (), ('2-3', '4-5'))
def rocon_semantic_version.base.Version.parse | ( | cls, | |
version_string, | |||
partial = False , |
|||
coerce = False |
|||
) |
tuple rocon_semantic_version::base.Version::partial_version_re = re.compile('^(\d+)(?:\.(\d+)(?:\.(\d+))?)?(?:-([0-9a-zA-Z.-]*))?(?:\+([0-9a-zA-Z.-]*))?$') [static] |
tuple rocon_semantic_version::base.Version::version_re = re.compile('^(\d+)\.(\d+)\.(\d+)(?:-([0-9a-zA-Z.-]+))?(?:\+([0-9a-zA-Z.-]+))?$') [static] |