From 51dfcc866f38c4001531a00a8d425d0fa1fb2b12 Mon Sep 17 00:00:00 2001 From: Paul Ganssle Date: Fri, 1 Jun 2018 11:48:00 -0400 Subject: [PATCH 1/2] Switch tox to using custom configuration directory --- tox.ini | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 9407b70d6517..c12300823c02 100644 --- a/tox.ini +++ b/tox.ini @@ -8,8 +8,9 @@ envlist = py35, py36 [testenv] changedir = /tmp +setenv = + MPLCONFIGDIR={envtmpdir}/.matplotlib commands = - sh -c 'rm -f $HOME/.matplotlib/fontList*' {envpython} {toxinidir}/tests.py --processes=-1 --process-timeout=300 deps = numpy From 4b77bf422f41dd1f88f11e5c72be38db11543f8c Mon Sep 17 00:00:00 2001 From: Paul Ganssle Date: Fri, 1 Jun 2018 13:35:34 -0400 Subject: [PATCH 2/2] Make tox.ini work out of the box Co-authored-by: Antony Lee --- tox.ini | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index c12300823c02..2193faf4af15 100644 --- a/tox.ini +++ b/tox.ini @@ -10,8 +10,11 @@ envlist = py35, py36 changedir = /tmp setenv = MPLCONFIGDIR={envtmpdir}/.matplotlib + PIP_USER = 0 + PIP_ISOLATED = 1 + MPLLOCALFREETYPE = 1 +usedevelop = True commands = - {envpython} {toxinidir}/tests.py --processes=-1 --process-timeout=300 + pytest --pyargs matplotlib deps = - numpy pytest