1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
[tox]
envlist =
{py35,py36,py37}-django21,
{py35,py36,py37}-django22,
dist,isort,lint,readme
[testenv]
commands = coverage run manage.py test {posargs: --no-input -v 2}
usedevelop = True
envdir={toxworkdir}/v/{envname}
setenv =
PYTHONDONTWRITEBYTECODE = 1
deps =
coverage
django21: Django~=2.1
django22: Django~=2.2
[testenv:dist]
commands = python manage.py test {posargs: --no-input -v 2}
usedevelop = False
[testenv:isort]
commands = isort --check-only --recursive src tests {posargs:--diff}
deps =
isort
[testenv:lint]
commands = flake8 src tests {posargs}
deps =
flake8
flake8-bugbear
flake8-commas
flake8-quotes
[testenv:readme]
commands =
python setup.py sdist bdist_wheel
twine check dist/*
usedevelop = False
deps =
twine
|