Skip to content

Commit

Permalink
more ideas for readthedocs
Browse files Browse the repository at this point in the history
  • Loading branch information
David committed May 28, 2018
1 parent 13646b9 commit 5550fad
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/.readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
python:
setup_py_install: true
12 changes: 11 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,17 @@
import sys
# sys.path.insert(0, os.path.abspath('.'))
sys.path.insert(0, os.path.abspath('../'))
import numpy as np, pandas as pd

import sys
from unittest.mock import MagicMock

class Mock(MagicMock):
@classmethod
def __getattr__(cls, name):
return MagicMock()

MOCK_MODULES = ['numpy', 'pandas', 'hpfrec.cython_loops']
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)

# -- General configuration ------------------------------------------------

Expand Down

0 comments on commit 5550fad

Please sign in to comment.