-
Committer:
Tarmac
-
Author(s):
Soren Hansen, Todd Willey
-
Date:
2011-01-07 23:24:42 UTC
-
mfrom:
(515.6.5 newlog2)
-
Revision ID:
tarmac-20110107232442-t6u1ei2moibp4jqg
Adds a mechanism to programmatically determine the version of Nova. The designated version is defined in nova/version.py. When running python setup.py from a bzr checkout, information about the bzr branch is put into nova/vcsversion.py which is conditionally imported in nova/version.py.
In short, you can now do:
>>> import nova.version
>>> nova.version.canonical_version_string()
'2011.1'
>>> nova.version.version_string()
'2011.1-dev'
>>> nova.version.version_string_with_vcs()
u'2011.1-newlog2:soren@linux2go.dk-20110107130049-g2cbri7t80vsg2h1'
It's also consumed by the docs and setup.py, so this ought to be the canonical place for updating version information from now on.