File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818sys .path .insert (0 , pathlib .Path (__file__ ).parents [2 ].resolve ().as_posix ())
1919
2020# import MOCK
21- autodoc_mock_imports = ["torch" ,
22- "pysam" ,
23- "pybedtools" ,
24- "pyfasta" ,
25- "pyBigWig" ,
26- "pytorch_lightning" ,
27- "webdataset" ]
21+ from unittest import mock
22+
23+ # Mock open3d because it fails to build in readthedocs
24+ MOCK_MODULES = ["torch" ,
25+ "pysam" ,
26+ "pybedtools" ,
27+ "pyfasta" ,
28+ "pyBigWig" ,
29+ "pytorch_lightning" ,
30+ "webdataset" ]
31+ for mod_name in MOCK_MODULES :
32+ sys .modules [mod_name ] = mock .Mock ()
2833
2934# -- Project information -----------------------------------------------------
3035
5459# This pattern also affects html_static_path and html_extra_path.
5560exclude_patterns = []
5661
57-
58- # -- Options for HTML output -------------------------------------------------
59-
60- # The theme to use for HTML and HTML Help pages. See the documentation for
61- # a list of builtin themes.
62- #
6362intersphinx_mapping = {
6463 'python' : ('https://docs.python.org/3/' , None ),
6564 'sphinx' : ('https://www.sphinx-doc.org/en/master/' , None ),
You can’t perform that action at this time.
0 commit comments