Skip to content
Snippets Groups Projects
Commit bd280d0c authored by Jérémy Bobbio (Lunar)'s avatar Jérémy Bobbio (Lunar) Committed by Jérémy Bobbio (Lunar)
Browse files

Update and clean tox configuration for version 4

Related to swh/meta#4959
parent c553eccd
No related branches found
No related tags found
1 merge request!410Update tox configuration for version 4
Pipeline #1010 passed
[tox]
requires =
tox>4
envlist=flake8,mypy,py3-django2,py3-django3
[testenv]
......@@ -49,14 +51,13 @@ commands =
# git HEAD of swh-docs, is executed on CI for each diff to prevent
# breaking doc build
[testenv:sphinx]
whitelist_externals = make
allowlist_externals = make
usedevelop = true
extras =
testing
deps =
# fetch and install swh-docs in develop mode
-e git+https://forge.softwareheritage.org/source/swh-docs#egg=swh.docs
-e git+https://gitlab.softwareheritage.org/swh/devel/swh-docs.git\#egg=swh.docs
setenv =
SWH_PACKAGE_DOC_TOX_BUILD = 1
# turn warnings into errors
......@@ -64,18 +65,16 @@ setenv =
commands =
make -I ../.tox/sphinx/src/swh-docs/swh/ -C docs
# build documentation only inside swh-environment using local state
# of swh-docs package
[testenv:sphinx-dev]
whitelist_externals = make
allowlist_externals = make
usedevelop = true
extras =
testing
deps =
# install swh-docs in develop mode
-e ../swh-docs
setenv =
SWH_PACKAGE_DOC_TOX_BUILD = 1
# turn warnings into errors
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment