Files
nova-specs/tox.ini
Stephen Finucane d1e06027bc tox: Build docs with Python 2.7
On systems that use Python 3 as default, the 'docs' target fails due to
a non-Python 3 dependency (feedformatter, required by yasfb). It's not
even clear if yasbf is still relevant, given the uselessness of the
content published online [1]. However, it's easier to just build the
docs with Python 2 than go on a wild goose chase looking for more info.

[1] http://specs.openstack.org/openstack/nova-specs/rss.xml

Change-Id: I129f635bc2d060f9da9bfc8b43652be7c10e9200
2017-03-20 10:05:41 +00:00

43 lines
1022 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,py27,pep8
skipsdist = True
[testenv]
usedevelop = True
setenv = VIRTUAL_ENV={envdir}
install_command = pip install -U {opts} {packages}
deps = -r{toxinidir}/requirements.txt
whitelist_externals = find
commands =
find . -type f -name "*.pyc" -delete
python setup.py testr --slowest --testr-args='{posargs}'
[testenv:venv]
commands = {posargs}
[testenv:docs]
basepython = python2.7
commands =
find . -type f -name "*.pyc" -delete
python setup.py build_sphinx
[testenv:pep8]
deps = -r{toxinidir}/test-requirements.txt
commands =
flake8 {posargs}
[flake8]
ignore = E128
exclude = .venv,.git,.tox,doc,.eggs
[testenv:move-implemented-specs]
# NOTE(mriedem): simplejson is used by launchpadlib but is a lazy import and
# fails if we don't have it.
deps = launchpadlib
simplejson
commands =
python {toxinidir}/tools/move_implemented_specs.py {posargs}