Add the possibility to run tests with "setup.py test"
This commit is contained in:
parent
b1b7562e55
commit
28dd67cb32
1
.gitignore
vendored
1
.gitignore
vendored
@ -18,3 +18,4 @@ test_venv
|
|||||||
htmlcov/
|
htmlcov/
|
||||||
tox_logs/
|
tox_logs/
|
||||||
.cache/
|
.cache/
|
||||||
|
.eggs/
|
||||||
|
4
Makefile
4
Makefile
@ -27,10 +27,12 @@ clean_tild_backup:
|
|||||||
clean_docs:
|
clean_docs:
|
||||||
rm -rf docs/_build/
|
rm -rf docs/_build/
|
||||||
rm -rf docs/package/
|
rm -rf docs/package/
|
||||||
|
clean_eggs:
|
||||||
|
rm -rf .eggs/
|
||||||
|
|
||||||
clean: clean_pyc clean_build clean_coverage clean_tild_backup
|
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:
|
dist:
|
||||||
python setup.py sdist
|
python setup.py sdist
|
||||||
|
@ -1,2 +1,11 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
description-file = README.rst
|
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",
|
url="https://github.com/nitmir/django-cas-server",
|
||||||
download_url="https://github.com/nitmir/django-cas-server/releases",
|
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 New Issue
Block a user