Skip to content

Commit

Permalink
Remove requirements file, mock out unsupported libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
David Hadka committed Sep 16, 2015
1 parent fa40995 commit 28ee0da
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
10 changes: 10 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@
import sys
import os
import shlex
from unittest.mock import MagicMock

# Work on ReadTheDocs.org
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 requirements.txt

This file was deleted.

0 comments on commit 28ee0da

Please sign in to comment.