From 3160e0f3063b4064a48e2a5b065c425997cc4c2a Mon Sep 17 00:00:00 2001 From: Stepan Henek Date: Wed, 30 May 2018 10:32:55 +0200 Subject: [PATCH] trigger tests using `python setup.py test` --- setup.cfg | 8 ++++++++ setup.py | 10 ++++++++++ 2 files changed, 18 insertions(+) diff --git a/setup.cfg b/setup.cfg index 147dce3f..7c71f4f6 100644 --- a/setup.cfg +++ b/setup.cfg @@ -3,3 +3,11 @@ max-line-length = 119 [wheel] universal = 1 + +[aliases] +test=pytest + +[tool:pytest] +addopts = --cov-report term-missing --cov jose +testpaths = tests +python_files = test_*.py diff --git a/setup.py b/setup.py index c8aec62a..d21374d5 100644 --- a/setup.py +++ b/setup.py @@ -55,5 +55,15 @@ def get_packages(package): 'Topic :: Utilities', ], extras_require=extras_require, + setup_requires=['pytest-runner'], + tests_require=[ + 'six', + 'future', + 'ecdsa', + 'pytest', + 'pytest-cov', + 'pytest-runner', + 'cryptography', + ], install_requires=['six <2.0', 'ecdsa <1.0', 'rsa', 'future <1.0'] )