2011-09-17 18:27:02 +00:00
|
|
|
[tox]
|
|
|
|
|
envlist =
|
2017-10-19 22:51:44 +00:00
|
|
|
# Python/Django combinations that are officially supported
|
2020-11-25 19:56:03 +00:00
|
|
|
py{27,35,36,37}-django111
|
2020-04-14 20:21:20 +00:00
|
|
|
py{35,36,37,38}-django22
|
|
|
|
|
py{36,37,38}-django30
|
2020-11-25 19:56:03 +00:00
|
|
|
py37-{flake8,bandit,readme,docs}
|
2011-09-17 18:27:02 +00:00
|
|
|
|
|
|
|
|
[testenv]
|
2020-04-14 20:21:20 +00:00
|
|
|
description = Unit tests
|
2015-04-20 21:59:19 +00:00
|
|
|
deps =
|
2017-10-15 17:46:44 +00:00
|
|
|
coverage
|
|
|
|
|
django111: Django>=1.11,<2.0
|
2019-04-08 19:50:10 +00:00
|
|
|
django22: Django>=2.2,<3.0
|
2020-04-14 20:21:20 +00:00
|
|
|
django30: Django>=3.0,<3.1
|
|
|
|
|
commands =
|
|
|
|
|
coverage run setup.py test
|
2020-11-25 19:56:03 +00:00
|
|
|
coverage xml
|
2017-10-15 17:46:44 +00:00
|
|
|
|
2020-11-25 20:01:53 +00:00
|
|
|
[gh-actions]
|
|
|
|
|
python =
|
|
|
|
|
2.7: py27
|
|
|
|
|
3.5: py35
|
|
|
|
|
3.6: py36
|
|
|
|
|
3.7: py37
|
|
|
|
|
3.8: py38
|
|
|
|
|
|
2020-11-25 20:04:49 +00:00
|
|
|
[testenv:py37-bandit]
|
2020-04-14 20:21:20 +00:00
|
|
|
description = PyCQA security linter
|
|
|
|
|
deps = bandit<1.6
|
2020-11-25 20:15:45 +00:00
|
|
|
commands = - bandit -r --ini tox.ini
|
2020-11-25 20:11:14 +00:00
|
|
|
ignore_errors = true
|
2019-04-08 19:50:10 +00:00
|
|
|
|
2020-11-25 20:04:49 +00:00
|
|
|
[testenv:py37-docs]
|
2020-04-14 20:21:20 +00:00
|
|
|
description = Build the HTML documentation
|
2019-04-08 19:50:10 +00:00
|
|
|
deps = sphinx
|
2019-04-09 08:44:29 +00:00
|
|
|
commands = sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html
|
2019-04-08 19:50:10 +00:00
|
|
|
whitelist_externals = make
|
|
|
|
|
|
2020-11-25 20:04:49 +00:00
|
|
|
[testenv:py37-flake8]
|
2020-04-14 20:21:20 +00:00
|
|
|
description = Static code analysis and code style
|
2017-10-15 17:46:44 +00:00
|
|
|
deps = flake8
|
|
|
|
|
commands = flake8
|
|
|
|
|
|
2020-11-25 20:04:49 +00:00
|
|
|
[testenv:py37-readme]
|
2020-04-14 20:21:20 +00:00
|
|
|
description = Ensure README renders on PyPI
|
2019-04-08 18:14:01 +00:00
|
|
|
deps = twine
|
|
|
|
|
commands =
|
|
|
|
|
{envpython} setup.py -q sdist bdist_wheel
|
|
|
|
|
twine check dist/*
|
2017-11-22 23:56:11 +00:00
|
|
|
|
2019-04-08 19:50:10 +00:00
|
|
|
[bandit]
|
|
|
|
|
exclude = .cache,.git,.tox,build,dist,docs,tests
|
|
|
|
|
targets = .
|
2017-10-15 17:46:44 +00:00
|
|
|
|
|
|
|
|
[flake8]
|
2019-04-08 18:14:01 +00:00
|
|
|
exclude = .cache,.git,.tox,build,dist
|
2017-10-15 17:46:44 +00:00
|
|
|
max-line-length = 100
|