From 57c6fe10ff40e124e3ccd6cc72385ccf9c01a372 Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Sun, 15 Jul 2018 13:52:24 -0700 Subject: Reorganize *requirements.txt and set up requirements for readthedocs --- setup.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 3e3b15e..8e056d6 100644 --- a/setup.py +++ b/setup.py @@ -93,7 +93,14 @@ class BuildExt(build_ext): setup_py_cwd = dirname(__file__) -with open(join(setup_py_cwd, 'test_requirements.txt')) as f: +with open(join(setup_py_cwd, 'requirements/docs.txt')) as f: + docs_require = [ + line.strip() for line in f + if line.strip() and not line.strip().startswith('#') + ] + + +with open(join(setup_py_cwd, 'requirements/test.txt')) as f: tests_require = [ line.strip() for line in f if line.strip() and not line.strip().startswith('#') @@ -112,12 +119,7 @@ setup( ext_modules=ext_modules, install_requires=['pybind11 >= 2.2.3, < 3'], extras_require={ - 'docs': [ - 'sphinx >= 1.4', - 'sphinx-rtd-theme', - 'ipykernel', - 'nbsphinx' - ] + 'docs': docs_require }, cmdclass={'build_ext': BuildExt}, zip_safe=False, -- cgit v1.2.3