Add optional revision field to version number
Add a revision field to the version number to account for releases from the stable branch, e.g. 2011.3.1. See http://wiki.openstack.org/StableBranchRelease Change-Id: I34238a5639d34c9cf44655775a6be80fdd446233
This commit is contained in:
parent
4c5586a28f
commit
bd035a5a6d
|
@ -14,13 +14,13 @@
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
NOVA_VERSION = ['2012', '1']
|
NOVA_VERSION = ['2012', '1', None]
|
||||||
YEAR, COUNT = NOVA_VERSION
|
YEAR, COUNT, REVISION = NOVA_VERSION
|
||||||
FINAL = False # This becomes true at Release Candidate time
|
FINAL = False # This becomes true at Release Candidate time
|
||||||
|
|
||||||
|
|
||||||
def canonical_version_string():
|
def canonical_version_string():
|
||||||
return '.'.join([YEAR, COUNT])
|
return '.'.join(filter(None, NOVA_VERSION))
|
||||||
|
|
||||||
|
|
||||||
def version_string():
|
def version_string():
|
||||||
|
|
Loading…
Reference in New Issue