Fix tox4 error

tox.ini started failing with Tox4 which had some
incompatible changes. One of them is changing
whitelist to allowlist. Other failure is due to
the skipsdist = True.

Also, remove basepython definition from tox.ini. Tox 4.2.6
failing as testenv:functional{,-py38,-py39,-py310}] format
is leads to missing interpreter error.

Change-Id: I49523d1e35c85ab34f17c85e873bbe3744629c64
This commit is contained in:
Ghanshyam Mann 2023-01-24 00:08:42 -06:00
parent a938631fed
commit c10a993d57
1 changed files with 3 additions and 5 deletions

View File

@ -1,10 +1,8 @@
[tox]
envlist = pep8,eslint,karma-local,docs-local,releasenotes,lower-constraints-local
minversion = 2.3.2
skipsdist = True
[testenv]
basepython = python3
usedevelop = True
setenv = VIRTUAL_ENV={envdir}
NOSE_WITH_OPENSTACK=1
@ -55,7 +53,7 @@ commands =
{[testenv]commands}
[testenv:eslint]
whitelist_externals =
Allowlist_externals =
npm
commands =
npm install
@ -65,14 +63,14 @@ commands =
# from master branch into python3.x environment for testing javascripts.
# Horizon from master is needed to be cloned into ../horizon on both local and CI.
[testenv:karma]
whitelist_externals =
Allowlist_externals =
{[testenv:eslint]whitelist_externals}
commands =
npm install
npm run test
[testenv:karma-local]
whitelist_externals =
Allowlist_externals =
{[testenv:eslint]whitelist_externals}
commands =
{[testenv:karma]commands}