Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
stharrold committed Jan 26, 2015
2 parents 5991a2c + 8c8b584 commit 87dd7f2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
14 changes: 14 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,20 @@

import sys
import os
try:
from unittest.mock import MagicMock
except ImportError:
from mock import Mock as MagicMock

# Mock out the imports that rely on C libraries for readthedocs:
# http://read-the-docs.readthedocs.org/en/latest/faq.html#i-get-import-errors-on-libraries-that-depend-on-c-modules
class Mock(MagicMock):
@classmethod
def __getattr__(cls, name):
return Mock()

MOCK_MODULES = ['numpy', 'scipy', 'matplotlib']
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand Down
3 changes: 0 additions & 3 deletions docs/requirements_readthedocs.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
numpy>=1.8.2
scipy>=0.14.0
matplotlib>=1.4.0
sphinx>=1.2.2
sphinxcontrib-napoleon>=0.2.9

0 comments on commit 87dd7f2

Please sign in to comment.