Merge lp:~soren/nova/version into lp:~hudson-openstack/nova/trunk
Proposed by
Soren Hansen
Status: | Merged |
---|---|
Approved by: | Vish Ishaya |
Approved revision: | 525 |
Merged at revision: | 530 |
Proposed branch: | lp:~soren/nova/version |
Merge into: | lp:~hudson-openstack/nova/trunk |
Prerequisite: | lp:~anso/nova/newlog2 |
Diff against target: |
149 lines (+65/-14) 5 files modified
.bzrignore (+1/-0) doc/source/conf.py (+4/-3) nova/log.py (+4/-10) nova/version.py (+46/-0) setup.py (+10/-1) |
To merge this branch: | bzr merge lp:~soren/nova/version |
Related bugs: | |
Related blueprints: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Vish Ishaya (community) | Approve | ||
Eric Day (community) | Approve | ||
Todd Willey (community) | Approve | ||
Review via email: mp+45517@code.launchpad.net |
Description of the change
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.
'2011.1'
>>> nova.version.
'2011.1-dev'
>>> nova.version.
u'2011.
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.
To post a comment you must log in.
nova/version.py is missing a copyright header.