Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to hide list of installed deps from tox console output?

Tags:

python

tox

I am trying to simplify the console output of tox and to hide the list of installed packages, ideally to hide them if there are no errors installing them.

Here is the current output

tox -e py27                                                                                                                                           
py27 installed: alabaster==0.7.9,...<VERY LONG LIST..
py27 runtests: ...

I tried to add install_command = pip install -q {opts} {packages} but it did had no effect.

like image 757
sorin Avatar asked Dec 08 '25 08:12

sorin


2 Answers

With tox >= 2.4 you can use the list_dependencies_command parameter (http://tox.readthedocs.io/en/latest/config.html#confval-list_dependencies_command).

[testenv]
whitelist_externals=echo
list_dependencies_command=echo
like image 132
Christian Berendt Avatar answered Dec 09 '25 22:12

Christian Berendt


It seems that at this moment this is a tox bug https://github.com/tox-dev/tox/issues/601

like image 29
sorin Avatar answered Dec 09 '25 21:12

sorin