Use pure version number ("2012.1") in tarball name

Makes setup.py use a canonical_version() function that returns the pure
(final) version number. That version number is used in tarball name and
as the main tarball directory. This brings Keystone in line with the
other core projects and needs to be in before Essex-1 delivery.

Change-Id: I8adb45ccc619a9a77d7a4da013d7cc9cf6277f86
This commit is contained in:
Thierry Carrez 2011-11-02 15:33:14 -04:00
parent 647f6a91f2
commit 4d774dbdbf
3 changed files with 6 additions and 1 deletions

View File

@ -30,6 +30,7 @@ Sai Krishna <saikrishna1511@gmail.com>
Sirish Bitra <sirish.bitra@gmail.com>
Sony K. Philip <sony@hcleai.com>
termie <github@anarkystic.com>
Thierry Carrez <thierry@openstack.org>
Todd Willey <xtoddx@gmail.com>
Vishvananda Ishaya <vishvananda@gmail.com>
Yogeshwar Srikrishnan <yoga80@yahoo.com>

View File

@ -23,6 +23,10 @@ RELEASE_VERSION = "2012.1"
RELEASE_VERSION_FINAL = False # becomes true at Release Candidate time
def canonical_version():
return RELEASE_VERSION
def version():
if RELEASE_VERSION_FINAL:
return RELEASE_VERSION

View File

@ -44,7 +44,7 @@ except:
setup(
name='keystone',
version=keystone.version(),
version=keystone.canonical_version(),
description="Authentication service - proposed for OpenStack",
license='Apache License (2.0)',
classifiers=["Programming Language :: Python"],