Skip to content

Commit

Permalink
Use __about__ module for package-speific metadata
Browse files Browse the repository at this point in the history
Fixes emre#31
  • Loading branch information
tony committed Dec 11, 2015
1 parent b8324cb commit 09dc7d6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 8 deletions.
9 changes: 9 additions & 0 deletions kaptan/__about__.py
Original file line number Diff line number Diff line change
@@ -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'
21 changes: 13 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=[
Expand Down

0 comments on commit 09dc7d6

Please sign in to comment.