Skip to content

Commit

Permalink
yet another try at readthedocs
Browse files Browse the repository at this point in the history
  • Loading branch information
David committed May 28, 2018
1 parent f61e2b0 commit a80cb9c
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,7 @@
import sys
# sys.path.insert(0, os.path.abspath('.'))
sys.path.insert(0, os.path.abspath('../'))
import numpy, pandas, scipy.special

########### TRICK FOUND ON SOME TUTORIAL : ADD IN THE MOCK_MODULES ANY EXTERNAL MODULE YOU'RE USING IN YOUR PACKAGE.

import mock

MOCK_MODULES = ['numpy', 'scipy', 'pandas']
for mod_name in MOCK_MODULES:
sys.modules[mod_name] = mock.Mock()
import numpy as np, pandas as pd

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

Expand Down

0 comments on commit a80cb9c

Please sign in to comment.