878b20898d
This has bit-rotted as libraries have updated to Python 3 only. Switch to hacking; some minor changes to regex-strings is all that is required. Drop py27 markers and move to Python 3 only. Update requirements. Depends-On: https://review.opendev.org/737666 Change-Id: Iabf201965129b3284166e1aedcb9f1c9d6109077
39 lines
920 B
INI
39 lines
920 B
INI
[tox]
|
|
minversion = 3.1.1
|
|
envlist = docs,pep8,py35,py36,py37,py38
|
|
skipsdist = True
|
|
ignore_basepython_conflict = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
install_command = pip install -U {opts} {packages}
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands = python setup.py test --slowest --testr-args='{posargs}'
|
|
|
|
[testenv:pep8]
|
|
commands = flake8
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:cover]
|
|
commands =
|
|
coverage erase
|
|
python setup.py test --coverage --coverage-package-name=grafana_dashboards --testr-args='{posargs}'
|
|
coverage report
|
|
|
|
[testenv:docs]
|
|
commands = python setup.py build_sphinx
|
|
|
|
[flake8]
|
|
# E123, E125 skipped as they are invalid PEP-8.
|
|
# H202 skip until we actually write our own exceptions
|
|
|
|
show-source = True
|
|
ignore = E123,E125,H202,W503
|
|
builtins = _
|
|
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build
|