Add virtualenv requirement to tox.ini

We're getting divergence between local test runs and the gate based
on what version of pip is being used by tox, which depends on what
version of virtualenv (which specifies the versions of pip,
setuptools, and wheel) that tox uses in your local environment.  To
eliminate guesswork, tell tox what version of virtualenv it should
use.  Also specify a minversion of tox that can do this.

Change-Id: I01451ec27d3ad6e759636902e497272a89cf6d16
(cherry picked from commit 6ff5591fce)
This commit is contained in:
Brian Rosmaita 2021-03-15 23:19:25 -04:00
parent 636180128d
commit aeeb514804
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
[tox]
minversion = 3.1.0
minversion = 3.18.0
requires = virtualenv>=20.4.2
skipsdist = True
# python runtimes: https://governance.openstack.org/tc/reference/project-testing-interface.html#tested-runtimes
envlist = py3,compliance,pep8