Files
python-dracclient/tox.ini
Richard Pioso 8b97afb0bf Update TOX_CONSTRAINTS_FILE for stable/victoria
Update the URL to the upper-constraints file to point to the redirect
rule on releases.openstack.org so that anyone working on this branch
will switch to the correct upper-constraints list automatically when the
requirements repository branches.

Until the requirements repository has a stable/victoria branch, tests
will continue to use the upper-constraints list on master.

Change-Id: Ib55ba5f69818ab890feacbd8da8eed0d52604145
2020-10-09 17:01:40 -04:00

37 lines
942 B
INI

[tox]
minversion = 3.1.0
envlist = py38,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/victoria}
-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/victoria}
-r{toxinidir}/doc/requirements.txt
commands =
sphinx-build -b html doc/source doc/build/html
[flake8]
max-complexity=15
show-source = True