summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
authorSoren Hansen <soren@linux2go.dk>2011-01-07 23:24:42 +0000
committerTarmac <>2011-01-07 23:24:42 +0000
commit3885195ba05ca5317975797760a0cf81b5e4c647 (patch)
tree3762764ea49d22690039a89faa4fc55af06c7857 /nova/exception.py
parent0ed247f360f77f0a4a469a8d3b155ac5fcfa509c (diff)
parenta29bba7e9f57b97085902fa97d17de32da8044cb (diff)
downloadnova-3885195ba05ca5317975797760a0cf81b5e4c647.tar.gz
nova-3885195ba05ca5317975797760a0cf81b5e4c647.tar.xz
nova-3885195ba05ca5317975797760a0cf81b5e4c647.zip
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.
Diffstat (limited to 'nova/exception.py')
0 files changed, 0 insertions, 0 deletions