performance-docs/tox.ini
Andreas Jaeger 542aedaf3a Switch to newer openstackdocstheme version
Switch to openstackdocstheme 2.2.1 version. Using
this version will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Disable openstackdocs_auto_version to not auto-version the documents.

Disable openstackdocs_auto_name to use 'project' variable as name.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Remove py27 job, py27 fails and not supported anymore in
OpenStack since Ussuri.

Remove unneeded setup.cfg cruft.

Change-Id: Ie22a24f1465420898c0a20efb2773cce2ed6e039
2020-06-01 17:00:05 +02:00

43 lines
787 B
INI

[tox]
envlist = docs,pep8
minversion = 3.1.1
skipsdist = True
ignore_basepython_conflict = True
[testenv]
basepython = python3
usedevelop = True
setenv = VIRTUAL_ENV={envdir}
LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_ALL=C
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
python setup.py test --slowest --testr-args='{posargs}'
[testenv:venv]
commands = {posargs}
[testenv:pep8]
commands = flake8
[testenv:docs]
commands = sphinx-build -b html doc/source doc/build/html
[testenv:pdf]
deps =
cairosvg
lxml
tinycss
cssselect
rst2pdf
whitelist_externals = bash
commands = bash tools/build_pdf.sh
[flake8]
show-source = true
builtins = _
exclude=.venv*,.git,.tox,dist,doc,*lib/python*,*egg,build