tox: Work around Python 2.6 issues with tox 3

Fedora 30 uses tox 3 which does not work with Python 2.6 out of the box.
Setting the install and list_dependencies commands to run `pip` instead
of `python -m pip` seems to fix this for now.
This commit is contained in:
Till Maas 2019-06-11 14:40:57 +02:00
parent cb5fb554c4
commit 494b4cd5ed

View file

@ -34,6 +34,8 @@ deps = black
commands = black --check --diff --include "^[^.].*\.py$" .
[testenv:py26]
install_command = pip install {opts} {packages}
list_dependencies_command = pip freeze
basepython = python2.6
passenv = {[base]passenv}
setenv =