Beispiel #1
0
def version_properties():
    """get properties in version file

    @rtype dict
    @return dict

    """
    return utils.properties_from_file(version_file())
Beispiel #2
0
def get_version():
    """ returns current version of module

    @rtype string
    @return string in format major_v.minor_v.patch_v.build_N

    """
    properties = utils.properties_from_file(version_file(), replace_dots=True)
    return '{version_major}.{version_minor}.{version_patch}.{build_number}'\
        .format(**properties)