os-traits/tox.ini
Ghanshyam Mann d81a6f2ca8 Updating python testing classifier as per Yoga testing runtime
Yoga testing runtime[1] has been updated to add py39
testing as voting. Unit tests update are handled by the
job template change in openstack-zuul-job

- https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/820286

this commit updates the classifier in setup.cfg file and tox.ini.

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

Change-Id: I4be58a69548a037d1920183fd1d58f91ec30e382
2021-12-14 13:25:24 +01:00

55 lines
1.3 KiB
INI

[tox]
minversion = 3.18.0
envlist = py39,pep8
ignore_basepython_conflict = true
[testenv]
basepython = python3
allowlist_externals =
rm
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt}
-r{toxinidir}/test-requirements.txt
commands = stestr run --slowest {posargs}
[testenv:pep8]
commands = flake8 {posargs}
[testenv:venv]
commands = {posargs}
[testenv:docs]
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt}
-r{toxinidir}/doc/requirements.txt
commands =
rm -rf doc/build
sphinx-build -W -b html doc/source doc/build/html
[testenv:pdf-docs]
deps = {[testenv:docs]deps}
allowlist_externals =
make
commands =
sphinx-build -W -b latex doc/source doc/build/pdf
make -C doc/build/pdf
[testenv:releasenotes]
deps =
{[testenv:docs]deps}
commands =
rm -rf releasenotes/build
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[testenv:debug]
commands = oslo_debug_helper {posargs}
[flake8]
# E123, E125 skipped as they are invalid PEP-8.
#
# W504 skipped since you must choose either W503 or W504 (they conflict)
show-source = True
ignore = E123,E125,H405,W504
builtins = _
exclude=.venv,.git,.tox,dist,*lib/python*,*egg,build