Pull version in directly from git-review.

There is no need to duplicate the version in two files. Don't judge me for
using exec().

Change-Id: Icf3b61450adfac25f947d715a5d72dfee47fdc40
This commit is contained in:
Monty Taylor 2011-10-05 17:01:00 -04:00
parent c43cec1857
commit 6bac306a6a
1 changed files with 7 additions and 3 deletions

View File

@ -20,8 +20,12 @@ from setuptools.command.bdist_egg import bdist_egg
from sphinx.setup_command import BuildDoc
import commands
# Please also change this in git-review when changing it.
version = '1.1'
# version comes from git-review.
savename = __name__
__name__ = "not-main"
exec(open("git-review", "r"))
__name__ = savename
cmdclass = {}
@ -59,7 +63,7 @@ setup(
author='OpenStack, LLC.',
author_email='openstack@lists.launchpad.net',
url='http://www.openstack.org',
scripts=['git-review'],
scripts=('git-review'),
data_files=[('share/man/man1', ['build/sphinx/man/git-review.1'])],
cmdclass=cmdclass,
)