Aija Jauntēva c104340ff6 Update tox Python versions for Yoga
Update list to Python 3.6, 3.9 per [1].

[1] https://governance.openstack.org/tc/reference/runtimes/yoga.html

Change-Id: I40a88297b09a542fcf79fde9d4066beef50a1b9d
2021-12-14 04:22:15 -05:00

37 lines
938 B
INI

[tox]
minversion = 3.1.0
envlist = py39,py36,pep8
ignore_basepython_conflict=true
[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
basepython = python3
setenv = PYTHONDONTWRITEBYTECODE=1
commands =
coverage run --branch --source dracclient --omit "dracclient/tests*" -m unittest discover dracclient.tests
coverage report -m --fail-under 90
[testenv:venv]
commands = {posargs}
[testenv:pep8]
commands =
flake8 dracclient
doc8 README.rst CONTRIBUTING.rst doc/source
[testenv:docs]
deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/doc/requirements.txt
commands =
sphinx-build -b html doc/source doc/build/html
[flake8]
max-complexity=15
show-source = True