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
This commit is contained in:
Manpreet Kaur 2021-02-25 13:49:04 +05:30
parent 811d47f0c0
commit 9cf8119af8

10
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