diff --git a/Testing/requirements.txt b/Testing/requirements.txt new file mode 100644 index 0000000..e69de29 diff --git a/Testing/setup.py b/Testing/setup.py new file mode 100644 index 0000000..e69de29 diff --git a/Testing/tox.ini b/Testing/tox.ini new file mode 100644 index 0000000..c33531b --- /dev/null +++ b/Testing/tox.ini @@ -0,0 +1,47 @@ +[tox] +envlist = + lint,py27,py35,py36,py37,py38,pypy,pypy3,docs,coverage-report,flake8,spelling + + +[testenv:coverage-report] +basepython = python3.7 +skip_install = true +deps = coverage[toml]>=5.0.2 +commands = + coverage combine + coverage report + + +[pipupgrade] +commands = + {envpython} -m pip install --upgrade pip + + +[testenv:docs] +changedir = {toxinidir}/docs +commands = + {[pipupgrade]commands} + sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html + {[cleanup]commands} +deps = + sphinx + sphinx_rtd_theme + + +[cleanup] +commands = + find {toxinidir}/tests -type f -name "*.pyc" -delete + find {toxinidir}/tests -type d -name "__pycache__" -delete + find {toxinidir}/src -type f -name "*.pyc" -delete + find {toxinidir}/src -type d -name "__pycache__" -delete + find {toxinidir}/src -type f -path "*.egg-info*" -delete + find {toxinidir}/src -type d -path "*.egg-info" -delete + + +[testenv:flake8] +changedir = {toxinidir} +deps = flake8 +commands = + {[pipupgrade]commands} + flake8 {toxinidir}/src/django_registration {toxinidir}/tests + {[cleanup]commands} \ No newline at end of file