5711f63d1b
OpenStack ussuri release will be python 3 only so let's define the basepython in common env now. Change-Id: I431523d0cd23c227e535c471bb0c74a3586fa696
33 lines
690 B
INI
33 lines
690 B
INI
[tox]
|
|
minversion = 3.1
|
|
envlist = pep8
|
|
skipsdist = True
|
|
ignore_basepython_conflict = True
|
|
|
|
[testenv]
|
|
basepython = python3
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
install_command = pip install -U {opts} {packages}
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
|
|
[testenv:pep8]
|
|
deps =
|
|
{[testenv]deps}
|
|
commands =
|
|
flake8
|
|
|
|
[flake8]
|
|
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:status]
|
|
whitelist_externals =
|
|
mkdir
|
|
bash
|
|
passenv = RELEASES RPM_PACKAGING REQUIREMENTS RELEASE
|
|
commands =
|
|
mkdir -p html
|
|
bash -c 'python tools/rpm-packaging-status.py status --format html $RELEASES $RPM_PACKAGING $REQUIREMENTS $RELEASE > html/index.html'
|