Skip to content

Commit e70b625

Browse files
authored
Merge pull request #97 from shenek/setup_py_tests
trigger tests using `python setup.py test`
2 parents 8339a19 + 3160e0f commit e70b625

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

setup.cfg

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,11 @@ max-line-length = 119
33

44
[wheel]
55
universal = 1
6+
7+
[aliases]
8+
test=pytest
9+
10+
[tool:pytest]
11+
addopts = --cov-report term-missing --cov jose
12+
testpaths = tests
13+
python_files = test_*.py

setup.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,15 @@ def get_packages(package):
5555
'Topic :: Utilities',
5656
],
5757
extras_require=extras_require,
58+
setup_requires=['pytest-runner'],
59+
tests_require=[
60+
'six',
61+
'future',
62+
'ecdsa',
63+
'pytest',
64+
'pytest-cov',
65+
'pytest-runner',
66+
'cryptography',
67+
],
5868
install_requires=['six <2.0', 'ecdsa <1.0', 'rsa', 'future <1.0']
5969
)

0 commit comments

Comments
 (0)