In validating the change after this I found that: 1. The pypy tox env defaults to pypy2 which obviously is a problem 2. The constraints URL, while functional, follows an older more complex form 3. The pep8 tox env would descend into .tox which fails as packages outside of out control may have pep8 issues 4. I often have a .venv directory which fails for the same reason as point 3 This change addresses those issues suck that a `tox` run completes as expected. Change-Id: Ia64b5f7b69744ede12604bfd204ae0cbdb6aeea2
44 lines
1.0 KiB
INI
44 lines
1.0 KiB
INI
[tox]
|
|
envlist = py3,pypy3,pep8
|
|
minversion = 3.1
|
|
skipsdist = True
|
|
ignore_basepython_conflict = True
|
|
|
|
[testenv]
|
|
basepython = python3
|
|
usedevelop = True
|
|
install_command = pip install {opts} {packages}
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
OS_STDOUT_NOCAPTURE=False
|
|
OS_STDERR_NOCAPTURE=False
|
|
PYTHONHASHSEED=0
|
|
deps =
|
|
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands = stestr run {posargs}
|
|
|
|
[testenv:pep8]
|
|
deps = {[testenv]deps}
|
|
flake8<4.0.0,>=3.9.2
|
|
commands = flake8
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
|
-r{toxinidir}/doc/requirements.txt
|
|
commands =
|
|
sphinx-build -W -b html doc/source doc/build/html
|
|
|
|
|
|
[testenv:lower-constraints]
|
|
deps =
|
|
-c{toxinidir}/lower-constraints.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
[flake8]
|
|
exclude=.tox,.venv
|