From 3fab5f723bc513e8467b15b2200a7cc63176dee1 Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Fri, 14 Sep 2018 12:11:55 -0400 Subject: Update setup configuration --- setup.py | 71 +++++++++++++++++++++++++++++++++++++--------------------------- 1 file changed, 41 insertions(+), 30 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 964b096..d12fd4c 100644 --- a/setup.py +++ b/setup.py @@ -1,47 +1,58 @@ -import io -from setuptools import setup +from io import open +from os import path +from setuptools import setup, find_packages from dotfiles import __version__ +here = path.abspath(path.dirname(__file__)) -with io.open('README.md', 'rt', encoding='utf8') as f: - readme = f.read() +with open(path.join(here, 'README.md'), encoding='utf8') as f: + long_description = f.read() + +requirements = [ + 'click', + 'py', +] + +test_requirements = [ + 'pytest', + 'pytest-pep8', + 'pytest-flakes', +] setup( name='dotfiles', version=__version__, - author='Jon Bernard', - author_email='jbernard@jbernard.io', - url='https://github.com/jbernard/dotfiles', description='Easily manage your dotfiles', + long_description=long_description, long_description_content_type='text/markdown', - long_description=readme, - license='ISC', - packages=['dotfiles'], + url='https://github.com/jbernard/dotfiles', + author='Jon Bernard', + author_email='jbernard@jbernard.io', + classifiers=[ + 'Development Status :: 4 - Beta', + 'License :: OSI Approved :: ISC License (ISCL)' + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.6', + ], + packages=find_packages(), + install_requires=requirements, extras_require={ - 'dev': [ - 'pytest', - 'flake8', - ], + 'dev': ['check-manifest'], + 'test': test_requirements, }, - # setup_requires=[ - # 'pytest-runner', - # 'flake8', - # ], - install_requires=[ - 'click', - 'py', - ], - tests_require=[ - 'pytest' - ], entry_points={ 'console_scripts': [ 'dotfiles=dotfiles.cli:cli', ], }, - classifiers=[ - 'Programming Language :: Python', - 'Programming Language :: Python :: 3', - 'License :: OSI Approved :: ISC License (ISCL)' - ], + project_urls={ + 'Bug Reports': 'https://github.com/jbernard/dotfiles/issues', + 'Source': 'https://github.com/jbernard/dotfiles', + }, + + # temporary + setup_requires=['pytest-runner'], + tests_require=test_requirements, ) -- cgit v1.2.3