Trees | Indices | Help |
|
---|
|
Version utilities.
|
|||
|
|||
|
|||
tuple or None |
|
||
string or None |
|
||
bool |
|
||
bool |
|
||
|
|||
|
|
|||
_FULL_VERSION_RE = re.compile(r"(\d+)\.(\d+)\.(\d+)")
|
|||
_SHORT_VERSION_RE = re.compile(r"(\d+)\.(\d+)")
|
|||
FIRST_UPGRADE_VERSION = 2, 10, 0
|
|||
CURRENT_VERSION = constants.VERSION_MAJOR, constants.VERSION_M
|
Imports: re, constants
|
Calculates int version number from major, minor and revision numbers. Returns: int representing version number |
Splits version number stored in an int. Returns: tuple; (major, minor, revision) |
Parses a version string.
|
Verify whether a version is within the range of automatic upgrades.
|
Decide whether cfgupgrade --downgrade should be called. Given the current version and the version to change to, decide if in the transition process cfgupgrade --downgrade should be called
|
Decide whether configuration version is compatible with the target.
|
Decide if a given version is strictly before a given version.
|
Decide if a given version matches the given version. If the revision is set to None, only major and minor are compared.
|
|
CURRENT_VERSION
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Aug 22 11:13:09 2016 | http://epydoc.sourceforge.net |