diff --git a/doc-requirements.txt b/doc-requirements.txt index 12d796e31..75415ebdb 100644 --- a/doc-requirements.txt +++ b/doc-requirements.txt @@ -1,4 +1,3 @@ sphinx>=1.4.4 astor>=0.5 git+https://github.com/simphony/traitlet-documenter.git --r requirements.txt diff --git a/setup.py b/setup.py index fa1f04530..f9b1ce116 100644 --- a/setup.py +++ b/setup.py @@ -1,28 +1,40 @@ +import os from setuptools import setup, find_packages from remoteappmanager import __version__ VERSION = __version__ + +requirements = [ + "setuptools>=21.0", + "traitlets>=4.1", + "tornado>=4.3", + "requests>=2.10.0", + "escapism>=0.0.1", + "jinja2>=2.8", + "jupyter_client>=4.3.0", + "click>=6.6", + "tabulate>=0.7.5", +] + +# Unfortunately RTD cannot install jupyterhub because jupyterhub needs bower, +# and that is not available. We prevent the request for the unreleased jhub +# by skipping it if we are on RTD +# We also have problems with requests as docker-py wants <2.11 and RTD +# provides 2.11.1 + +on_rtd = os.environ.get('READTHEDOCS') == 'True' +if not on_rtd: + requirements.extend(["jupyterhub>=0.7.0dev0", "docker-py>=1.8"]) + # main setup configuration class setup( name='remoteappmanager', version=VERSION, author='SimPhoNy Project', description='Remote application manager sub-executable', - install_requires=[ - "setuptools>=21.0", - "traitlets>=4.1", - "tornado>=4.3", - "docker-py>=1.8", - "requests>=2.10.0", - "escapism>=0.0.1", - "jinja2>=2.8", - "jupyterhub>=0.7.0dev0", - "jupyter_client>=4.3.0", - "click>=6.6", - "tabulate>=0.7.5", - ], + install_requires=requirements, packages=find_packages(), include_package_data=True, entry_points={