From 0c048098bccc9762208786e85c823d5041fe1354 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Tue, 23 Jan 2024 11:57:51 +0000 Subject: [PATCH] tox: Random cleanups Change-Id: Ib62f264e817d77ed6cda47daeaaa2994fc5d9f01 Signed-off-by: Stephen Finucane --- tox.ini | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/tox.ini b/tox.ini index b4399d2..8875217 100644 --- a/tox.ini +++ b/tox.ini @@ -1,15 +1,15 @@ [tox] -minversion = 3.1.0 -envlist = py37,pep8,docs -ignore_basepython_conflict = true +minversion = 4.3.0 +envlist = py3,pep8,docs [testenv] -basepython = python3 -deps = -r{toxinidir}/test-requirements.txt -commands = stestr run --slowest {posargs} +deps = + -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} + -r{toxinidir}/test-requirements.txt +commands = + stestr run --slowest {posargs} [testenv:pep8] -deps=-r{toxinidir}/test-requirements.txt commands = flake8 @@ -17,12 +17,13 @@ commands = commands = {posargs} [testenv:docs] -deps = -r{toxinidir}/doc/requirements.txt -commands = +deps = + -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} + -r{toxinidir}/doc/requirements.txt +commands = sphinx-build -a -E -W -d doc/build/doctrees -b html doc/source doc/build/html [flake8] -ignore = E123,H405,W504 show-source = True -exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,__init__.py - +exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,__init__.py +ignore = E123,H405,W504