Skip to content

Commit

Permalink
Fix setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
emerali committed Mar 28, 2019
1 parent 50f91e7 commit 18f2842
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
12 changes: 8 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,14 @@
"matplotlib>=2.2",
]

# because RTD runs out of memory when using `pip install -e .[rtd]` to install
# docs dependencies for some reason
with open(".build_tools/readthedocs/requirements.txt", "r") as reqs:
rtd_requires = [line.strip() for line in reqs.readlines()]
# using a requirements.txt file for RTD dependencies
# since it runs out of memory when using `pip install -e .[rtd]` to install
# the dependencies for some reason
try:
with open(".build_tools/readthedocs/requirements.txt", "r") as reqs:
rtd_requires = [line.strip() for line in reqs.readlines()]
except FileNotFoundError:
rtd_requires = []

doc_requires = rtd_requires + ["sphinx_rtd_theme>=0.4.1", "sphinx-autobuild>=0.7.1"]

Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ ignore =

max-complexity = 15
exclude =
.tox,
.git,
__pycache__,
build,
Expand Down

0 comments on commit 18f2842

Please sign in to comment.