From b8691b0985bd1cf081088df200c6d54a602d0bbb Mon Sep 17 00:00:00 2001 From: Daniel Schep Date: Sat, 2 Sep 2017 12:41:32 -0400 Subject: [PATCH] Make pandas support optional, as it is with tablib For the same reasons as with kennethreitz/tablib#307, it's preferable that pandas support not be included by default. * pandas wheels weigh in at 130M which counts for a lot when working with environments like AWS Lambda which are limited to 256M. * Some people can't use wheels and having to compile pandas siginificantly slows down their build proceses and CI pipelines. --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 31dcf87..02b3139 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ if sys.argv[-1] == 'publish': os.system('python setup.py bdist_wheel upload --universal') sys.exit() -requires = ['SQLAlchemy', 'tablib[pandas]', 'docopt'] +requires = ['SQLAlchemy', 'tablib', 'docopt'] version = '0.5.1' @@ -35,6 +35,9 @@ setup( 'console_scripts': ['records=records:cli'], }, install_requires=requires, + extras_require={ + 'pandas': ['tablib[pandas]'], + }, license='ISC', zip_safe=False, classifiers=(