Skip to content

Commit

Permalink
Ignore some packages on readthedocs
Browse files Browse the repository at this point in the history
  • Loading branch information
tfarago committed Sep 26, 2017
1 parent 551a9ca commit 372ea1f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions conf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import sys
from mock import MagicMock

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

MOCK_MODULES = ['pyfft', 'pyopencl', 'quantities', 'numpy', 'scipy']
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
mock
numpy>=1.6.1
quantities>=0.10.1
pyopencl>=2012.1
Expand Down

0 comments on commit 372ea1f

Please sign in to comment.