¡@

Home 

OpenStack Study: version.py

OpenStack Index

**** CubicPower OpenStack Study ****

def canonical_version_string():

    return '.'.join(filter(None, NeutronRestPROXY_VERSION))

**** CubicPower OpenStack Study ****

def version_string():

    if FINAL:

        return canonical_version_string()

    else:

        return '%s-dev' % (canonical_version_string(),)

**** CubicPower OpenStack Study ****

def vcs_version_string():

    return "%s:%s" % (version_info['branch_nick'], version_info['revision_id'])

**** CubicPower OpenStack Study ****

def version_string_with_vcs():

    return "%s-%s" % (canonical_version_string(), vcs_version_string())

if __name__ == "__main__":

    print(version_string_with_vcs())