[PATCH 1 of 2 seda] tox: don't enable global site package

Philippe Pepiot philippe.pepiot at logilab.fr
Mon Oct 29 12:16:48 CET 2018


# HG changeset patch
# User Philippe Pepiot <philippe.pepiot at logilab.fr>
# Date 1540811157 -3600
#      Mon Oct 29 12:05:57 2018 +0100
# Node ID e2837a22e676f8e3f36fd4e23412dc6105327213
# Parent  359177d6a1c84d4f328c1e509a48339fd3803e3b
# Available At https://hg.logilab.org/review/cubes/seda
#              hg pull https://hg.logilab.org/review/cubes/seda -r e2837a22e676
tox: don't enable global site package

This is known to produce non-reproductible tests. Furthermore we deploy using
pip and virtualenv on Centos 7 but we are testing on Debian stretch, so testing
global site package on jenkins has no advantage.

Thus we can disable some whitelist_externals which are no longer required.

diff --git a/tox.ini b/tox.ini
--- a/tox.ini
+++ b/tox.ini
@@ -6,7 +6,6 @@ envlist = py27, flake8-jenkins, check-ma
 
 
 [testenv]
-sitepackages = True
 deps =
   -rdev-requirements.txt
 commands = {envpython} -m pytest {posargs:{toxinidir}/test}
@@ -25,16 +24,12 @@ commands =
 
 [testenv:flake8]
 skip_install = true
-whitelist_externals =
-  flake8
 deps =
   flake8
 commands = flake8 {posargs:{toxinidir}}
 
 [testenv:flake8-jenkins]
 skip_install = true
-whitelist_externals =
-  flake8
 deps =
   flake8
 commands = flake8 --exit-zero --show-source --output-file=code_quality.log {toxinidir}
@@ -57,8 +52,6 @@ commands = make -C cubicweb_seda {posarg
 
 [testenv:doc]
 changedir = doc
-whitelist_externals =
-  sphinx-build
 deps =
   sphinx
 commands = sphinx-build -b html -d {envtmpdir}/doctrees .  {envtmpdir}/html



More information about the saem-devel mailing list