Set ignore_basepython_conflict to true in tox.ini

Since dropping py2 support and adding a basepython setting to the global
tox testenv, tox complains about a basepython mismatch when the
installed python3 is python3.6 and the py37 environment is executed (or
vice versa). Setting ignore_basepython_conflict = True will avoid this
message and enforce the correct python version to be used.

Needs a bump in the minimum tox version supported.

See also [0].

[0] https://review.opendev.org/582392

Change-Id: I3d9beeaed104dcf12cfd97590b44c4003754b4e4
This commit is contained in:
Jens Harbott 2019-11-28 12:42:47 +00:00
parent f0db43df55
commit d296188c2e

View File

@ -1,7 +1,8 @@
[tox]
envlist = docs,py37,pep8
minversion = 2.3.2
minversion = 3.1.0
skipsdist = True
ignore_basepython_conflict = True
[testenv]
basepython = python3