grafyaml/tox.ini
Clark Boylan 757e2d24c8 Migrate grafyaml container images to quay.io
This migrates the published container images to quay.io. We also update
the source of the python base image to quay.io.

Three tox.ini changes are made. The first is to stop skipping sdists
which skips all installation of the software entirely. This prevents
AUTHORS file generation which breaks the docs build. We also need to
stop using develop installs to ensure AUTHORS files get generated.
Third we replace the setup.py build_sphinx command with sphinx-build as
setup.py commands are deprecated and don't work properly with modern
setuptools.

Depends-On: https://review.opendev.org/c/opendev/system-config/+/881932
Change-Id: Ia738ee9553368464dc498e4e04e1389c6dfbb969
2023-05-08 10:33:18 -07:00

37 lines
909 B
INI

[tox]
minversion = 3.1.1
envlist = docs,pep8,py35,py36,py37,py38
ignore_basepython_conflict = True
[testenv]
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 = sphinx-build -W -E -b html doc/source doc/build/html
[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