Adopt docs section to work with tox 4

This commit is contained in:
Erik Kalkoken 2022-12-20 08:38:59 +00:00 committed by Ariel Rin
parent 7a195d4158
commit 59a8f8a967

View File

@ -9,7 +9,6 @@ setenv =
all: DJANGO_SETTINGS_MODULE = tests.settings_all
core: DJANGO_SETTINGS_MODULE = tests.settings_core
basepython =
py37: python3.7
py38: python3.8
py39: python3.9
py310: python3.10
@ -26,7 +25,8 @@ commands =
[testenv:docs]
description = invoke sphinx-build to build the HTML docs
basepython = python3.9
skip_install = True
deps = -r{toxinidir}/docs/requirements.txt
install_command =
install_command = python -I -m pip install {opts} {packages}
commands =
sphinx-build -T -E -b html -d "{toxworkdir}/docs_doctree" -D language=en docs "{toxworkdir}/docs_out" {posargs}