l.a.versioninfo : module documentation

Part of lp.app

Give access to version info, if available.

The version info file is expected to be in the Launchpad root in the file version-info.py.

From this module, you can get:

versioninfo: the version_info dict revision: the commit ID (Git) or revision number (Bazaar) display_revision: revision formatted for display date: the date of the last revision branch_nick: the branch nickname

If the version-info.py file does not exist, then revision, display_revision, date, and branch_nick will all be None.

If that file exists, and contains valid Python, revision, display_revision, date, and branch_nick will have appropriate values from version_info.

If that file exists, and contains invalid Python, there will be an error when this module is loaded. This module is imported into lp/app/__init__.py so that such errors are caught at start-up.

Function read_version_info Undocumented
def read_version_info():
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2018-05-23 00:00:09.