Skip to content

Commit

Permalink
RTD fix attempt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
emerali committed Sep 3, 2018
1 parent 4cc6d95 commit ec730c3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .build_tools/readthedocs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
nbsphinx>=0.3.4
ipython>=6.5.0
8 changes: 4 additions & 4 deletions readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
setup_py_install: true
version: 3.5
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down

0 comments on commit ec730c3

Please sign in to comment.