From ec730c3a3e4bd2fd16b03f07eff058760ed2e390 Mon Sep 17 00:00:00 2001 From: Ejaaz Merali Date: Mon, 3 Sep 2018 17:39:14 -0400 Subject: [PATCH] RTD fix attempt 2 --- .build_tools/readthedocs/requirements.txt | 2 ++ readthedocs.yml | 8 ++++---- setup.py | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) create mode 100644 .build_tools/readthedocs/requirements.txt diff --git a/.build_tools/readthedocs/requirements.txt b/.build_tools/readthedocs/requirements.txt new file mode 100644 index 00000000..a71668f4 --- /dev/null +++ b/.build_tools/readthedocs/requirements.txt @@ -0,0 +1,2 @@ +nbsphinx>=0.3.4 +ipython>=6.5.0 diff --git a/readthedocs.yml b/readthedocs.yml index 3a898056..b7c9a435 100644 --- a/readthedocs.yml +++ b/readthedocs.yml @@ -8,9 +8,9 @@ formats: - epub - htmlzip +requirements_file: ".build_tools/readthedocs/requirements.txt" + python: use_system_site_packages: true - pip_install: true - version: 3.5 - extra_requirements: - - rtd \ No newline at end of file + setup_py_install: true + version: 3.5 \ No newline at end of file diff --git a/setup.py b/setup.py index 2b7ea11e..6b7f5a41 100644 --- a/setup.py +++ b/setup.py @@ -28,13 +28,14 @@ exec(f.read(), init_file) install_requires = [ - "torch>=0.4.1,<0.4.2 ; sys_platform != 'win32'", + "torch>=0.4.1,<0.4.2; sys_platform != 'win32'", "tqdm>=4.23", "numpy>=1.13", "matplotlib>=2.2", ] -rtd_requires = ["nbsphinx>=0.3.4", "ipython>=6.5.0"] +with open(".build_tools/readthedocs/requirements.txt", "r") as reqs: + rtd_requires = [line.strip() for line in reqs.readlines()] ci_requires = ["setuptools>=40.0.0", "wheel>=0.31.1", "pytest>=3.7.1"]