121d2b5355
This patch does two things to clean up gate package requirements, adding a bindep file and moving packages to the right location. Bindep controls which system packages are installed. If a project does not have a bindep.txt file present, the gate jobs will fall back to a common list of packages. These include things like mariadb and various clients that are not needed for specs repos. Added a basic bindep.txt file with just the things we need to ensure are present for building the docs in specs. There are also plans to stop looking at requirements.txt for specs since these repos do not install Python code. The two locations that are looked at are test-requirements.txt for running included tests, and doc/requirements.txt for anything needed for doc builds such as sphinx and plugins. Change-Id: I3a222d7eec32b0d5ae6ef4ad20b34603931e13d6
34 lines
605 B
INI
34 lines
605 B
INI
[tox]
|
|
minversion = 1.6
|
|
envlist = docs,pep8
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
install_command = pip install -U {opts} {packages}
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
|
|
[testenv:docs]
|
|
whitelist_externals = rm
|
|
commands =
|
|
rm -fr doc/build
|
|
python setup.py build_sphinx
|
|
doc8 --ignore D001 doc/source
|
|
|
|
[testenv:pep8]
|
|
commands =
|
|
flake8
|
|
doc8 --ignore D001 specs/
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[flake8]
|
|
# E123, E125 skipped as they are invalid PEP-8.
|
|
|
|
show-source = True
|
|
ignore = E123,E125
|
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|