Fixes #421 - Make all dependencies optional

Thanks Hugo van Kemenade for the review.
This commit is contained in:
Claude Paroz
2019-11-07 23:05:40 +01:00
parent 9d2f7d6999
commit 626a062747
8 changed files with 127 additions and 40 deletions
+6 -11
View File
@@ -2,16 +2,6 @@
from setuptools import find_packages, setup
install = [
'odfpy',
'openpyxl>=2.4.0',
'markuppy',
'xlrd',
'xlwt',
'pyyaml',
]
setup(
name='tablib',
use_scm_version=True,
@@ -42,8 +32,13 @@ setup(
'Programming Language :: Python :: 3.8',
],
python_requires='>=3.5',
install_requires=install,
extras_require={
'all': ['markuppy', 'odfpy', 'openpyxl>=2.4.0', 'pandas', 'pyyaml', 'xlrd', 'xlwt'],
'html': ['markuppy'],
'ods': ['odfpy'],
'pandas': ['pandas'],
'xls': ['xlrd', 'xlwt'],
'xlsx': ['openpyxl>=2.4.0'],
'yaml': ['pyyaml'],
},
)