Browse Source

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
changes/36/696536/1
Jens Harbott 2 years ago
parent
commit
d296188c2e
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      tox.ini

+ 2
- 1
tox.ini 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


Loading…
Cancel
Save