From f29aee87c7399d55053ed07d9a3e8bca2edc0562 Mon Sep 17 00:00:00 2001 From: Dev Aggarwal Date: Thu, 17 May 2018 19:18:01 +0530 Subject: [PATCH 1/4] Update setup.py Fix comma Add an extras_require field --- setup.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 9fff95e..16d63ce 100644 --- a/setup.py +++ b/setup.py @@ -25,6 +25,11 @@ REQUIRED = [ # 'requests', 'maya', 'records', ] +# What packages are optional? +EXTRAS = [ + 'django' +] + # The rest you shouldn't have to touch too much :) # ------------------------------------------------ # Except, perhaps the License and Trove Classifiers! @@ -89,7 +94,7 @@ setup( version=about['__version__'], description=DESCRIPTION, long_description=long_description, - long_description_content_type='text/markdown' + long_description_content_type='text/markdown', author=AUTHOR, author_email=EMAIL, python_requires=REQUIRES_PYTHON, @@ -102,6 +107,7 @@ setup( # 'console_scripts': ['mycli=mymodule:cli'], # }, install_requires=REQUIRED, + extras_require=EXTRAS, include_package_data=True, license='MIT', classifiers=[ From 703fe8d12d1c36ef2cae16dbcf137ad191193e0f Mon Sep 17 00:00:00 2001 From: Dev Aggarwal Date: Thu, 17 May 2018 19:21:46 +0530 Subject: [PATCH 2/4] Update setup.py --- setup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 16d63ce..33ee1b2 100644 --- a/setup.py +++ b/setup.py @@ -26,9 +26,9 @@ REQUIRED = [ ] # What packages are optional? -EXTRAS = [ - 'django' -] +EXTRAS = { + # 'my_fancy_feature': ['django'], +} # The rest you shouldn't have to touch too much :) # ------------------------------------------------ From 5b1185196e7ac88b3f2c9ecd1298c84495521390 Mon Sep 17 00:00:00 2001 From: Dev Aggarwal Date: Thu, 17 May 2018 19:22:38 +0530 Subject: [PATCH 3/4] Update setup.py --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 33ee1b2..542cb6a 100644 --- a/setup.py +++ b/setup.py @@ -27,7 +27,7 @@ REQUIRED = [ # What packages are optional? EXTRAS = { - # 'my_fancy_feature': ['django'], + # 'my fancy feature': ['django'], } # The rest you shouldn't have to touch too much :) From a0f9ab13c61d3712455266b26051f9cf74193c75 Mon Sep 17 00:00:00 2001 From: Dev Aggarwal Date: Thu, 17 May 2018 19:22:52 +0530 Subject: [PATCH 4/4] Update setup.py --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 542cb6a..8aacd93 100644 --- a/setup.py +++ b/setup.py @@ -27,7 +27,7 @@ REQUIRED = [ # What packages are optional? EXTRAS = { - # 'my fancy feature': ['django'], + # 'fancy feature': ['django'], } # The rest you shouldn't have to touch too much :)