mirror of
https://github.com/jazzband/django-downloadview.git
synced 2026-03-16 22:40:25 +00:00
57 lines
1.1 KiB
INI
57 lines
1.1 KiB
INI
[tox]
|
|
envlist = py{27,33,34}-django{15,16,17,18}, flake8, sphinx, readme
|
|
|
|
[testenv]
|
|
basepython =
|
|
py27: python2.7
|
|
py33: python3.3
|
|
py34: python3.4
|
|
deps =
|
|
coverage
|
|
nose
|
|
django15: Django>=1.5,<1.6
|
|
django16: Django>=1.6,<1.7
|
|
django17: Django>=1.7,<1.8
|
|
django18: Django>=1.8,<1.9
|
|
commands =
|
|
pip install -e .
|
|
pip install -e demo
|
|
demo test --cover-package=django_downloadview --cover-package=demoproject {posargs: tests demoproject}
|
|
coverage erase
|
|
pip freeze
|
|
|
|
[testenv:flake8]
|
|
basepython = python2.7
|
|
deps =
|
|
flake8
|
|
commands =
|
|
flake8 demo django_downloadview
|
|
|
|
[testenv:sphinx]
|
|
basepython = python2.7
|
|
deps =
|
|
Sphinx
|
|
commands =
|
|
pip install -e .
|
|
make --directory=docs SPHINXOPTS='-W' clean {posargs:html doctest}
|
|
whitelist_externals =
|
|
make
|
|
|
|
[testenv:readme]
|
|
basepython = python2.7
|
|
deps =
|
|
docutils
|
|
pygments
|
|
commands =
|
|
mkdir -p var/docs
|
|
rst2html.py --exit-status=2 README.rst var/docs/README.html
|
|
rst2html.py --exit-status=2 CONTRIBUTING.rst var/docs/CONTRIBUTING.html
|
|
whitelist_externals =
|
|
mkdir
|
|
|
|
[testenv:release]
|
|
deps =
|
|
wheel
|
|
zest.releaser
|
|
commands =
|
|
fullrelease
|