From 9ab4c35e8a54b0563daa13673a71c3f9701522c8 Mon Sep 17 00:00:00 2001 From: Cosimo Lupo Date: Fri, 18 Oct 2019 19:27:22 +0100 Subject: [PATCH] make lxml optional requiring lxml is too heavy-handed, given that fonttools itself doesn't require and neither does defcon (which is similar to ufoLib2). There still isn't a pre-compiled wheel for lxml for Python 3.8 on PyPI. Better to keep it optional, i.e. 'pip install ufoLib2[lxml]'. --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index f7a26614..cfd8a637 100644 --- a/setup.py +++ b/setup.py @@ -21,8 +21,9 @@ packages=find_packages("src"), include_package_data=True, python_requires=">=3.6", - install_requires=["fonttools[ufo,lxml] >= 3.34.0", "attrs >= 18.2.0"], + install_requires=["fonttools[ufo] >= 3.34.0", "attrs >= 18.2.0"], setup_requires=["setuptools_scm"], + extras_require={"lxml": ["lxml"]}, classifiers=[ "Development Status :: 4 - Beta", "Operating System :: OS Independent",