]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
pull the version and description in setup.py
authorAlfredo Deza <alfredo.deza@inktank.com>
Mon, 4 Aug 2014 19:11:47 +0000 (15:11 -0400)
committerAlfredo Deza <alfredo.deza@inktank.com>
Mon, 4 Aug 2014 19:11:47 +0000 (15:11 -0400)
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
setup.py

index 6fe7245de99bf8908c9e2152580ad31e96277063..6d7c85c3c78d911470070ff571427e57e960a6df 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -1,8 +1,14 @@
 from setuptools import setup, find_packages
+import re
+
+module_file = open("teuthology/__init__.py").read()
+metadata = dict(re.findall(r"__([a-z]+)__\s*=\s*['\"]([^'\"]*)['\"]", module_file))
+long_description = open('README.rst').read()
+
 
 setup(
     name='teuthology',
-    version='0.1.0',
+    version=metadata['version'],
     packages=find_packages(),
 
     author='Inktank Storage, Inc.',
@@ -11,6 +17,7 @@ setup(
     license='MIT',
     keywords='teuthology test ceph cluster',
     url='https://github.com/ceph/teuthology',
+    long_description=long_description,
     classifiers=[
         'Intended Audience :: Developers',
         'License :: OSI Approved :: MIT License',