api-sig/tox.ini
Dmitry Tantsur 19c3c6f566 Update Sphinx requirements and actually use Python 3 for docs
This fixes building the guidelines (again) since Sphinx 2.0.0 is not
compatible with Python 2.7, and the way we use basepython in tox.ini
is not correct (resulting in Python 2 being used by default).

Change-Id: Ieeeb319caa6d7a8dad78857c7dce105da33d2dd2
2019-05-17 09:48:18 +02:00

22 lines
524 B
INI

[tox]
# Hold back to 1.4, since that's what's in Fedora 20 repos
# and we don't need anything newer for nova-specs tests
minversion = 1.4
envlist = docs,py37
skipsdist = True
[testenv]
basepython = python3
usedevelop = True
setenv = VIRTUAL_ENV={envdir}
install_command = pip install -U {opts} {packages}
deps = -r{toxinidir}/requirements.txt
commands = stestr run --slowest {posargs}
[testenv:venv]
commands = {posargs}
[testenv:docs]
commands =
sphinx-build -W -b html -d doc/build/doctrees doc/source doc/build/html