Permalink
Browse files

[docs] fix

  • Loading branch information...
1 parent 83eed8c commit 680caf5d7fe1dc7f5e18bdc5c9d285800ac87881 @Eugeny Eugeny committed Feb 17, 2014
Showing with 33 additions and 1 deletion.
  1. +27 −1 docs/source/conf.py
  2. +6 −0 requirements-rtd.txt
View
@@ -70,4 +70,30 @@ def setup(app):
app.connect("autodoc-skip-member", skip)
-USE_PIP_INSTALL = True
+
+
+USE_PIP_INSTALL = True
+
+class Mock(object):
+ __all__ = []
+
+ def __init__(self, *args, **kwargs):
+ pass
+
+ def __call__(self, *args, **kwargs):
+ return Mock()
+
+ @classmethod
+ def __getattr__(cls, name):
+ if name in ('__file__', '__path__'):
+ return '/dev/null'
+ elif name[0] == name[0].upper():
+ mockType = type(name, (), {})
+ mockType.__module__ = __name__
+ return mockType
+ else:
+ return Mock()
+
+MOCK_MODULES = ['python-ldap', 'gevent', 'gevent-socketio', 'lxml', 'lxml.etree', 'pyOpenSSL', 'Pillow', 'psutil']
+for mod_name in MOCK_MODULES:
+ sys.modules[mod_name] = Mock()
@@ -0,0 +1,6 @@
+passlib
+python-catcher
+python-daemon
+python-exconsole>=0.1.5
+requests>=0.12.0
+reconfigure>=0.1.41

0 comments on commit 680caf5

Please sign in to comment.