Commits

Miran Levar committed 5ef0556

Change to conf.py nad rdt_requirements

  • Participants
  • Parent commits f6d5136

Comments (0)

Files changed (2)

File docs/rst/conf.py

 
 TITLE = "%s v%s documentation" % (DOCUMENTATION_NAME, VERSION)
 
+# Possible fix for rtd documentation
+class Mock(object):
+    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():
+            return type(name, (), {})
+        else:
+            return Mock()
+
+MOCK_MODULES = ['scipy', 'scipy.sparse', 'scipy.optimize']
+for mod_name in MOCK_MODULES:
+    sys.modules[mod_name] = Mock()
+
+
 # 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
 # documentation root, use os.path.abspath to make it absolute, like shown here.
 }
 
 
-# Possible fix for rtd documentation
-class Mock(object):
-    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():
-            return type(name, (), {})
-        else:
-            return Mock()
-
-#MOCK_MODULES = ['Orange', 'Orange.multitarget']
-#for mod_name in MOCK_MODULES:
-#    sys.modules[mod_name] = Mock()

File rdt_requirements

-Orange-Multitarget
+mock
+numpydoc
 -e hg+https://bitbucket.org/biolab/orange/#egg=Orange