From 802de30bf4eabd3f394c02d19e61814a0c718d28 Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Fri, 31 Aug 2018 13:02:27 -0400 Subject: Rework setup.py, move pytest and flake8 to extras_require --- setup.py | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/setup.py b/setup.py index f3e6f78..964b096 100644 --- a/setup.py +++ b/setup.py @@ -1,24 +1,32 @@ +import io from setuptools import setup from dotfiles import __version__ +with io.open('README.md', 'rt', encoding='utf8') as f: + readme = f.read() + setup( name='dotfiles', version=__version__, author='Jon Bernard', author_email='jbernard@jbernard.io', - description='Easily manage your dotfiles', url='https://github.com/jbernard/dotfiles', + description='Easily manage your dotfiles', long_description_content_type='text/markdown', - long_description=(open('README.md').read() + '\n\n' + - open('LICENSE.md').read() + '\n\n' + - open('HISTORY.md').read()), + long_description=readme, license='ISC', packages=['dotfiles'], - setup_requires=[ - 'pytest-runner', - 'flake8', - ], + extras_require={ + 'dev': [ + 'pytest', + 'flake8', + ], + }, + # setup_requires=[ + # 'pytest-runner', + # 'flake8', + # ], install_requires=[ 'click', 'py', -- cgit v1.2.3