61acf2f499
With Sphinx>=4 the docs build is failing when processing some translations due to warnings occurring. Don't treat the warnings as error for now to unblock other patches. See also the discussion in [0]. [0] https://review.opendev.org/c/openstack/openstackdocstheme/+/802758 Change-Id: Icd44440ddade54b7e963ab652074a0107f4b444b
35 lines
744 B
INI
35 lines
744 B
INI
[tox]
|
|
minversion = 3.1.0
|
|
envlist = docs,pep8
|
|
ignore_basepython_conflict = True
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
basepython = python3
|
|
usedevelop = True
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
install_command = pip install {opts} {packages}
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:pep8]
|
|
commands = doc8 -v doc README.rst
|
|
|
|
[testenv:docs]
|
|
deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
|
-r{toxinidir}/doc/requirements.txt
|
|
commands = docstheme-build-translated.sh
|
|
setenv =
|
|
SPHINX_WARNINGS_TRANS=1
|
|
|
|
[doc8]
|
|
# Settings for doc8:
|
|
# Ignore build directory
|
|
ignore-path = doc/build/
|
|
# File extensions to use
|
|
extensions = .rst,.txt
|