From 9cf8119af8d1c3771d1df648e5f57891959107a5 Mon Sep 17 00:00:00 2001 From: Manpreet Kaur Date: Thu, 25 Feb 2021 13:49:04 +0530 Subject: [PATCH] Update min version of tox This patch bumps the minimum version of tox to 3.18.0 [1]. To incorporate the below changes, * Remove configuration of "install_command" option in tox, as it turns out that this is the default value provided by tox [2]. * The argument such as "whitelist_externals" is deprecated, therefore replaces whitelist_externals by allowlist_externals option [1]. [1] https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23 [2] https://tox.readthedocs.io/en/latest/config.html#conf-install_command Change-Id: Iaf83bbaf7a4dbe03aab42d63a81276cfe42df505 --- tox.ini | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tox.ini b/tox.ini index eed919b76..3c6c4e80a 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] envlist = py39,py38,py36,pep8,docs -minversion = 3.1.1 +minversion = 3.18.0 skipsdist = True ignore_basepython_conflict = True @@ -18,9 +18,7 @@ setenv = VIRTUAL_ENV={envdir} TOX_CONSTRAINTS_FILE={toxinidir}/upper-constraints.txt passenv = TOX_CONSTRAINTS_FILE usedevelop = True -whitelist_externals = rm -install_command = - pip install -U {opts} {packages} +allowlist_externals = rm deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -r{toxinidir}/requirements.txt @@ -82,7 +80,7 @@ commands = flake8 doc8 -e .rst doc/source/ CONTRIBUTING.rst HACKING.rst README.rst TESTING.rst tacker-db-manage check_migration -whitelist_externals = bash +allowlist_externals = bash [testenv:i18n] commands = python ./tools/check_i18n.py ./tacker @@ -99,7 +97,7 @@ deps = -r{toxinidir}/doc/requirements.txt commands = rm -rf api-ref/build sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html -whitelist_externals = rm +allowlist_externals = rm [testenv:releasenotes] deps = -r{toxinidir}/doc/requirements.txt