From 9690282f214587c9b758321e2c909b757a67cd48 Mon Sep 17 00:00:00 2001 From: Cosimo Lupo Date: Thu, 2 Apr 2020 19:51:13 +0100 Subject: [PATCH] don't install lmxl when running '-nolxml' tests in .travis/run.sh we call tox -e py-nolxml with the XML-related tests to verify that they work despite lxml not being installed (using ElementTree backend). If we install lxml in requirements.txt unconditionally, then we are not testing the absence of lxml... --- requirements.txt | 1 - tox.ini | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 959efe64d..5bf176d28 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,4 +7,3 @@ scipy==1.4.1; platform_python_implementation != "PyPy" munkres==1.1.2; platform_python_implementation == "PyPy" zopfli==0.1.6 fs==2.4.11 -lxml==4.5.0 diff --git a/tox.ini b/tox.ini index 033e13863..c160e8b4f 100644 --- a/tox.ini +++ b/tox.ini @@ -10,6 +10,7 @@ deps = pytest pytest-randomly -rrequirements.txt + !nolxml: lxml==4.5.0 extras = ufo woff