Add the possibility to run tests with "setup.py test"
This commit is contained in:
parent
b1b7562e55
commit
28dd67cb32
4 changed files with 16 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -18,3 +18,4 @@ test_venv
|
|||
htmlcov/
|
||||
tox_logs/
|
||||
.cache/
|
||||
.eggs/
|
||||
|
|
4
Makefile
4
Makefile
|
@ -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
|
||||
|
|
|
@ -1,2 +1,11 @@
|
|||
[metadata]
|
||||
description-file = README.rst
|
||||
|
||||
[egg_info]
|
||||
tag_build =
|
||||
tag_date = 0
|
||||
tag_svn_revision = 0
|
||||
|
||||
[aliases]
|
||||
test=pytest
|
||||
|
||||
|
|
4
setup.py
4
setup.py
|
@ -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'],
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue