Module src.jsonid.version

jsonid version information.

Functions

def get_version()
Expand source code
def get_version():
    """Return information about the version of this application. If
    it returns 0.0.0 then the user is to assume this is a development
    version. Otherwise the version must be driven by the source
    control management through appropriate tagging.
    """
    __version__ = "0.0.0"
    try:
        __version__ = version("jsonid")
    except PackageNotFoundError:
        # package is not installed
        pass
    return __version__

Return information about the version of this application. If it returns 0.0.0 then the user is to assume this is a development version. Otherwise the version must be driven by the source control management through appropriate tagging.