From 09dc7d6df9f23412c5cf9bf2db0533b0097adb31 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Thu, 10 Dec 2015 23:39:46 -0600 Subject: [PATCH] Use __about__ module for package-speific metadata Fixes #31 --- kaptan/__about__.py | 9 +++++++++ setup.py | 21 +++++++++++++-------- 2 files changed, 22 insertions(+), 8 deletions(-) create mode 100644 kaptan/__about__.py diff --git a/kaptan/__about__.py b/kaptan/__about__.py new file mode 100644 index 0000000..d97d437 --- /dev/null +++ b/kaptan/__about__.py @@ -0,0 +1,9 @@ +__title__ = 'kaptan' +__package_name__ = 'kaptan' +__version__ = '0.5.8' +__description__ = 'Configuration manager' +__email__ = 'mail@emreyilmaz.me' +__url__ = 'https://github.com/emre/kaptan' +__author__ = 'Emre Yilmaz' +__license__ = 'BSD' +__copyright__ = 'Copyright 2013-2015 Emre Yilmaz' diff --git a/setup.py b/setup.py index 187e310..29c9d37 100644 --- a/setup.py +++ b/setup.py @@ -2,21 +2,26 @@ kaptan ~~~~~~ - :copyright: (c) 2013 by the authors and contributors (See AUTHORS file). + :copyright: (c) 2013-2015 by the authors and contributors (See AUTHORS file). :license: BSD, see LICENSE for more details. """ from setuptools import find_packages, setup +about = {} +with open("kaptan/__about__.py") as fp: + exec(fp.read(), about) + + setup( - name='kaptan', - version='0.5.8', + name=about['__title__'], + version=about['__version__'], packages=find_packages(), - url='https://github.com/emre/kaptan', - license='BSD', - author='Emre Yilmaz', - author_email='mail@emreyilmaz.me', - description='Configuration Manager', + url=about['__url__'], + license=about['__license__'], + author=about['__author__'], + author_email=about['__email__'], + description=about['__description__'], install_requires=['PyYAML'], entry_points=dict( console_scripts=[