aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Jon Bernard <jbernard@tuxion.com> 2016-01-12 17:12:00 -0500
committerGravatar Jon Bernard <jbernard@tuxion.com> 2016-01-12 17:12:00 -0500
commita6775c3faead950941517d3d4a3f6b1a84b457df (patch)
tree5e30a1aec8fd559e70de2c2bab6da0af014809d0
parent3a8a5714337d54ca239a3add4dd663b9b05ba3af (diff)
downloaddotfiles-a6775c3faead950941517d3d4a3f6b1a84b457df.tar.gz
dotfiles-a6775c3faead950941517d3d4a3f6b1a84b457df.tar.bz2
dotfiles-a6775c3faead950941517d3d4a3f6b1a84b457df.zip
Integrate pytest and flake8 into setuptools
-rw-r--r--.gitignore1
-rw-r--r--setup.cfg3
-rw-r--r--setup.py11
3 files changed, 14 insertions, 1 deletions
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',