From a6775c3faead950941517d3d4a3f6b1a84b457df Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Tue, 12 Jan 2016 17:12:00 -0500 Subject: Integrate pytest and flake8 into setuptools --- .gitignore | 1 + setup.cfg | 3 +++ setup.py | 11 ++++++++++- 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 6a2511d..7645e61 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ __pycache__/ build/ dist/ dotfiles.egg-info/ +.eggs/ Gemfile Gemfile.lock diff --git a/setup.cfg b/setup.cfg index 5e40900..0cd8d9d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,2 +1,5 @@ +[aliases] +test = pytest + [wheel] universal = 1 diff --git a/setup.py b/setup.py index 466b10e..8f866b7 100644 --- a/setup.py +++ b/setup.py @@ -12,11 +12,20 @@ setup( open('LICENSE.rst').read() + '\n\n' + open('HISTORY.rst').read()), license='ISC', - py_modules=['dotfiles'], + py_modules=[ + 'dotfiles' + ], + setup_requires=[ + 'pytest-runner', + 'flake8', + ], install_requires=[ 'click', 'py', ], + tests_require=[ + 'pytest' + ], entry_points={ 'console_scripts': [ 'dotfiles=dotfiles:cli', -- cgit v1.2.3