From cd2b732b8f5566803f26d83a14c0a3bfd3cf37e8 Mon Sep 17 00:00:00 2001 From: Paul-Emmanuel Raoul Date: Thu, 14 Jun 2018 15:52:38 +0100 Subject: [PATCH] Add Sphinx as an extra requirement to 'setup.py' --- setup.py | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/setup.py b/setup.py index a5595ca..e5fa212 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,6 @@ from os.path import dirname, realpath, join from setuptools import setup, find_packages - here = dirname(realpath(__file__)) with open(join(here, 'VERSION'), 'r') as ifile: @@ -10,14 +9,21 @@ with open(join(here, 'VERSION'), 'r') as ifile: with open(join(here, 'requirements.txt'), 'r') as ifile: requirements = ifile.read().splitlines() -setup(name='tfw', - version=version, - description='Avatao tutorial-framework', - url='https://github.com/avatao-content/baseimage-tutorial-framework', - author='Avatao.com Innovative Learning Kft.', - author_email='support@avatao.com', - license='custom', - packages=find_packages('lib'), - package_dir={'': 'lib'}, - install_requires=requirements, - zip_safe=False) +setup( + name = 'tfw', + version = version, + description = 'Avatao tutorial-framework', + url = 'https://github.com/avatao-content/baseimage-tutorial-framework', + author = 'Avatao.com Innovative Learning Kft.', + author_email = 'support@avatao.com', + license = 'custom', + packages = find_packages('lib'), + package_dir = {'': 'lib'}, + install_requires = requirements, + extras_require = { + 'docs': [ + 'sphinx >= 1.7.0', + ], + }, + zip_safe = False, +)