Add pytest-runner to run tests with py.test on setup.py test
This commit is contained in:
parent
fd3b0718fd
commit
4b74102e1c
2
.gitignore
vendored
2
.gitignore
vendored
@ -8,3 +8,5 @@ dist
|
||||
.settings
|
||||
.tox
|
||||
MANIFEST
|
||||
.cache
|
||||
.eggs
|
||||
|
3
pytest.ini
Normal file
3
pytest.ini
Normal file
@ -0,0 +1,3 @@
|
||||
[pytest]
|
||||
addopts = --flake8 --isort --cov radicale radicale
|
||||
norecursedirs = dist .cache .git build *.egg-info .eggs venv
|
8
setup.py
8
setup.py
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user