Add pytest-runner to run tests with py.test on setup.py test

This commit is contained in:
Florian Mounier 2016-07-04 14:29:38 +02:00
parent fd3b0718fd
commit 4b74102e1c
4 changed files with 15 additions and 0 deletions

2
.gitignore vendored
View File

@ -8,3 +8,5 @@ dist
.settings
.tox
MANIFEST
.cache
.eggs

3
pytest.ini Normal file
View File

@ -0,0 +1,3 @@
[pytest]
addopts = --flake8 --isort --cov radicale radicale
norecursedirs = dist .cache .git build *.egg-info .eggs venv

2
setup.cfg Normal file
View File

@ -0,0 +1,2 @@
[aliases]
test=pytest

View File

@ -63,6 +63,14 @@ setup(
provides=["radicale"],
scripts=["bin/radicale"],
install_requires=["vobject"],
setup_requires=['pytest-runner'],
tests_require=['pytest-cov', 'pytest-flake8', 'pytest-isort', 'pytest'],
extras_require={
'test': [
'pytest-runner', 'pytest-cov', 'pytest-flake8', 'pytest-isort',
'pytest'
]
},
keywords=["calendar", "addressbook", "CalDAV", "CardDAV"],
classifiers=[
"Development Status :: 5 - Production/Stable",