From cf3d56516f9c4a54c78243ce534fac964af22b36 Mon Sep 17 00:00:00 2001 From: Cathy Hu Date: Thu, 2 Jul 2020 11:24:43 +0200 Subject: [PATCH] [tests] Remove tests_install and replace with tox configuration --- setup.py | 5 +---- tox.ini | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 tox.ini diff --git a/setup.py b/setup.py index b77c315..1f50194 100644 --- a/setup.py +++ b/setup.py @@ -24,10 +24,7 @@ setup( 'pynacl', 'python-multipart', 'pytoml', + 'requests', 'scrypt', ], - tests_require=[ - 'flake8', - 'pytest', - ], ) diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..6f58f74 --- /dev/null +++ b/tox.ini @@ -0,0 +1,18 @@ +[tox] +envlist = py38, flake8, pytest + +[testenv] +deps = . + +[testenv:flake8] +deps = flake8 +exclude = .tox +commands = + flake8 kibicara tests --count --select=E9,F63,F7,F82 --show-source --statistics + flake8 kibicara tests --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + +[testenv:pytest] +deps = pytest +commands = + pytest +