Stop configuring install_command in tox.

Currently, we are overriding 'install_command' to use 'pip'. This is
considered poor behavior and 'python -m pip' should be used instead:

https://snarky.ca/why-you-should-use-python-m-pip/

It turns out that this is the the default value provided by tox:

https://tox.readthedocs.io/en/latest/config.html#conf-install_command

So we can remove the line and simply use the default value.

Change-Id: I2bf8b8509788fdc2f23c9ddf4211b19de7b3fb87
This commit is contained in:
Vishakha Agarwal 2020-03-23 22:05:42 +05:30
parent d9af77e1d8
commit 121ee8ce73
1 changed files with 1 additions and 2 deletions

View File

@ -1,11 +1,10 @@
[tox]
minversion = 2.5.0
minversion = 3.2.0
skipsdist = True
envlist = py37,pep8,api-ref,docs,genconfig,genpolicy,releasenotes,protection
[testenv]
usedevelop = True
install_command = pip install {opts} {packages}
basepython = python3
setenv = VIRTUAL_ENV={envdir}
deps = -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}