diff options
author | Jon Bernard <jbernard@jbernard.io> | 2018-09-14 12:11:55 -0400 |
---|---|---|
committer | Jon Bernard <jbernard@jbernard.io> | 2018-09-14 12:11:55 -0400 |
commit | 3fab5f723bc513e8467b15b2200a7cc63176dee1 (patch) | |
tree | 789c13c565435328bc2785fcde307712cd7b890c | |
parent | a1b2751749063f6aeb0f88bd60cc090528347272 (diff) | |
download | dotfiles-3fab5f723bc513e8467b15b2200a7cc63176dee1.tar.gz dotfiles-3fab5f723bc513e8467b15b2200a7cc63176dee1.tar.bz2 dotfiles-3fab5f723bc513e8467b15b2200a7cc63176dee1.zip |
Update setup configuration
-rw-r--r-- | setup.cfg | 7 | ||||
-rw-r--r-- | setup.py | 71 |
2 files changed, 46 insertions, 32 deletions
@@ -1,8 +1,11 @@ [aliases] test = pytest +[metadata] +license_file = LICENSE.md + [tool:pytest] -testpaths = tests +addopts = --pep8 --flakes -[wheel] +[bdist_wheel] universal = 1 @@ -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, ) |