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

Update and clean tox configuration for version 4

Related to swh/meta#4959
parent 2a2f7e88
No related branches found
No related tags found
1 merge request!179Update and clean tox configuration for version 4
Pipeline #828 passed
[tox] [tox]
requires =
tox>4
envlist=black,flake8,mypy,py3 envlist=black,flake8,mypy,py3
[testenv] [testenv]
...@@ -41,15 +43,14 @@ commands = ...@@ -41,15 +43,14 @@ commands =
# git HEAD of swh-docs, is executed on CI for each diff to prevent # git HEAD of swh-docs, is executed on CI for each diff to prevent
# breaking doc build # breaking doc build
[testenv:sphinx] [testenv:sphinx]
whitelist_externals = make allowlist_externals = make
usedevelop = true usedevelop = true
extras = extras =
testing testing
graph graph
deps = deps =
# fetch and install swh-docs in develop mode # fetch and install swh-docs in develop mode
-e git+https://forge.softwareheritage.org/source/swh-docs#egg=swh.docs -e git+https://forge.softwareheritage.org/source/swh-docs.git\#egg=swh.docs
setenv = setenv =
SWH_PACKAGE_DOC_TOX_BUILD = 1 SWH_PACKAGE_DOC_TOX_BUILD = 1
# turn warnings into errors # turn warnings into errors
...@@ -57,11 +58,10 @@ setenv = ...@@ -57,11 +58,10 @@ setenv =
commands = commands =
make -I ../.tox/sphinx/src/swh-docs/swh/ -C docs make -I ../.tox/sphinx/src/swh-docs/swh/ -C docs
# build documentation only inside swh-environment using local state # build documentation only inside swh-environment using local state
# of swh-docs package # of swh-docs package
[testenv:sphinx-dev] [testenv:sphinx-dev]
whitelist_externals = make allowlist_externals = make
usedevelop = true usedevelop = true
extras = extras =
testing testing
...@@ -69,7 +69,6 @@ extras = ...@@ -69,7 +69,6 @@ extras =
deps = 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
......
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