Add the possibility to run tests with "setup.py test"

This commit is contained in:
Valentin Samir 2016-07-10 11:48:43 +02:00
parent b1b7562e55
commit 28dd67cb32
4 changed files with 16 additions and 2 deletions

1
.gitignore vendored
View File

@ -18,3 +18,4 @@ test_venv
htmlcov/
tox_logs/
.cache/
.eggs/

View File

@ -27,10 +27,12 @@ clean_tild_backup:
clean_docs:
rm -rf docs/_build/
rm -rf docs/package/
clean_eggs:
rm -rf .eggs/
clean: clean_pyc clean_build clean_coverage clean_tild_backup
clean_all: clean clean_tox clean_test_venv clean_docs
clean_all: clean clean_tox clean_test_venv clean_docs clean_eggs
dist:
python setup.py sdist

View File

@ -1,2 +1,11 @@
[metadata]
description-file = README.rst
[egg_info]
tag_build =
tag_date = 0
tag_svn_revision = 0
[aliases]
test=pytest

View File

@ -73,5 +73,7 @@ setup(
],
url="https://github.com/nitmir/django-cas-server",
download_url="https://github.com/nitmir/django-cas-server/releases",
zip_safe=False
zip_safe=False,
setup_requires=['pytest-runner'],
tests_require=['pytest', 'pytest-django', 'pytest-pythonpath'],
)