From aa473cfb6e210c7a49f62b83c3ef342ae55d3fdd Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Thu, 12 Oct 2023 23:25:10 +0900 Subject: [PATCH] Modernize tox.ini ... based on the files in each module repository. Change-Id: I10d9ca47790d529d4aab576ce3dcaeabcd59e537 --- moduleroot/tox.ini.erb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/moduleroot/tox.ini.erb b/moduleroot/tox.ini.erb index e3eeb86..5bf76d2 100644 --- a/moduleroot/tox.ini.erb +++ b/moduleroot/tox.ini.erb @@ -1,12 +1,13 @@ [tox] -minversion = 2.0 +minversion = 3.1 skipsdist = True envlist = releasenotes +ignore_basepython_conflict = True [testenv] -install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages} +basepython = python3 [testenv:releasenotes] -basepython = python3 -deps = -r{toxinidir}/doc/requirements.txt +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 releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html