File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 3434 "matplotlib>=2.2" ,
3535]
3636
37- # because RTD runs out of memory when using `pip install -e .[rtd]` to install
38- # docs dependencies for some reason
39- with open (".build_tools/readthedocs/requirements.txt" , "r" ) as reqs :
40- rtd_requires = [line .strip () for line in reqs .readlines ()]
37+ # using a requirements.txt file for RTD dependencies
38+ # since it runs out of memory when using `pip install -e .[rtd]` to install
39+ # the dependencies for some reason
40+ try :
41+ with open (".build_tools/readthedocs/requirements.txt" , "r" ) as reqs :
42+ rtd_requires = [line .strip () for line in reqs .readlines ()]
43+ except FileNotFoundError :
44+ rtd_requires = []
4145
4246doc_requires = rtd_requires + ["sphinx_rtd_theme>=0.4.1" , "sphinx-autobuild>=0.7.1" ]
4347
Original file line number Diff line number Diff line change @@ -101,6 +101,7 @@ ignore =
101101
102102max-complexity = 15
103103exclude =
104+ .tox,
104105 .git,
105106 __pycache__,
106107 build,
You can’t perform that action at this time.
0 commit comments