Classes | Functions
rocon_semantic_version::base Namespace Reference

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

Function Documentation

Definition at line 19 of file base.py.

def rocon_semantic_version.base._to_int (   value) [private]

Definition at line 13 of file base.py.

def rocon_semantic_version.base.compare (   v1,
  v2 
)

Definition at line 500 of file base.py.

Compare two identifier (for pre-release/build components).

Definition at line 26 of file base.py.

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

Definition at line 45 of file base.py.

def rocon_semantic_version.base.match (   spec,
  version 
)

Definition at line 504 of file base.py.

def rocon_semantic_version.base.validate (   version_string)
Validates a version string againt the SemVer specification.

Definition at line 508 of file base.py.



rocon_semantic_version
Author(s): Raphaƫl Barrois
autogenerated on Fri May 2 2014 10:35:51