Changeset View
Changeset View
Standalone View
Standalone View
tox.ini
[tox] | [tox] | ||||
envlist=flake8,mypy,py3-django2 | envlist=flake8,mypy,py3-django2,py3-django3 | ||||
[testenv] | [testenv] | ||||
extras = | extras = | ||||
testing | testing | ||||
deps = | deps = | ||||
# the dependency below is needed for now as a workaround for | # the dependency below is needed for now as a workaround for | ||||
# https://github.com/pypa/pip/issues/6239 | # https://github.com/pypa/pip/issues/6239 | ||||
swh.core[http] >= 0.3 | swh.core[http] >= 0.3 | ||||
swh.scheduler[testing] >= 0.5.0 | swh.scheduler[testing] >= 0.5.0 | ||||
dev: pdbpp | dev: pdbpp | ||||
pytest-cov | pytest-cov | ||||
django2: Django>=2,<3 | django2: Django>=2,<3 | ||||
django3: Django>=3,<4 | |||||
commands = | commands = | ||||
pytest \ | pytest \ | ||||
!dev: --cov {envsitepackagesdir}/swh/deposit --cov-branch \ | !dev: --cov {envsitepackagesdir}/swh/deposit --cov-branch \ | ||||
{envsitepackagesdir}/swh/deposit \ | {envsitepackagesdir}/swh/deposit \ | ||||
{posargs} | {posargs} | ||||
[testenv:black] | [testenv:black] | ||||
skip_install = true | skip_install = true | ||||
▲ Show 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | deps = | ||||
# install swh-docs in develop mode | # install swh-docs in develop mode | ||||
-e ../swh-docs | -e ../swh-docs | ||||
setenv = | setenv = | ||||
SWH_PACKAGE_DOC_TOX_BUILD = 1 | SWH_PACKAGE_DOC_TOX_BUILD = 1 | ||||
# turn warnings into errors | # turn warnings into errors | ||||
SPHINXOPTS = -W | SPHINXOPTS = -W | ||||
commands = | commands = | ||||
make -I ../.tox/sphinx-dev/src/swh-docs/swh/ -C docs | make -I ../.tox/sphinx-dev/src/swh-docs/swh/ -C docs | ||||
No newline at end of file |