safe.common.version module

InaSAFE Disaster risk assessment tool developed by AusAid - Version getter.

Contact : ole.moller.nielsen@gmail.com

Note

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

safe.common.version.current_git_hash()[source]

Retrieve the current git hash number of the git repo (first 6 digit).

Returns:6 digit of hash number.
Return type:str
safe.common.version.get_version(version=None)[source]

Returns a PEP 386-compliant version number from VERSION.

Parameters:version (tuple) – A tuple that represent a version.
Returns:a PEP 386-compliant version number.
Return type:str
safe.common.version.release_status()[source]

Returns the release status from plugin metadata file.

Returns:The status of release - it could be alpha, beta, rc, or final.
Return type:basestring