From 64bcca68411e2f32400aca2f17c988dc1092b5d7 Mon Sep 17 00:00:00 2001 From: Henry Fredrick Schreiner Date: Thu, 19 Jul 2018 12:44:46 +0200 Subject: [PATCH] Adding test runner --- .travis.yml | 2 +- setup.cfg | 9 ++++++--- setup.py | 2 ++ 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index c10464fc..190ba9c1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,7 @@ matrix: - TOXENV=py27,report,coveralls - python: '3.5' env: - - TOXENV=py35,report,coveralls + - TOXENV=py35 - python: '3.6' env: - TOXENV=py36,report,coveralls diff --git a/setup.cfg b/setup.cfg index 76ce19b8..79925040 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,9 +1,8 @@ [bdist_wheel] universal = 1 -[flake8] -max-line-length = 140 -exclude = */migrations/* +[aliases] +test=pytest [tool:pytest] testpaths = tests @@ -21,6 +20,10 @@ addopts = --doctest-glob=\*.rst --tb=short +[flake8] +max-line-length = 140 +exclude = */migrations/* + [isort] force_single_line = True line_length = 120 diff --git a/setup.py b/setup.py index cd5b03d2..2ed03c9f 100644 --- a/setup.py +++ b/setup.py @@ -73,4 +73,6 @@ def read(*names, **kwargs): # 'rst': ['docutils>=0.11'], # ':python_version=="2.6"': ['argparse'], }, + setup_requires = ['pytest-runner'], + tests_require = ['pytest'] )