File tree 2 files changed +21
-2
lines changed
2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 13
13
# All configuration values have a default; values that are commented out
14
14
# serve to show the default.
15
15
16
+
16
17
import sys
17
18
import os
19
+ from mock import Mock as MagicMock
20
+
21
+
22
+ PY2 = sys .version_info [0 ] == 2
23
+
24
+
25
+ class Mock (MagicMock ):
26
+ @classmethod
27
+ def __getattr__ (cls , name ):
28
+ return Mock ()
29
+
30
+
31
+ MOCK_MODULES = []
32
+ if PY2 :
33
+ MOCK_MODULES .append ('lzma' )
34
+
35
+
36
+ sys .modules .update ((mod_name , Mock ()) for mod_name in MOCK_MODULES )
37
+
18
38
19
39
# If extensions (or modules to document with autodoc) are in another directory,
20
40
# add these directories to sys.path here. If the directory is relative to the
33
53
extensions = [
34
54
'sphinx.ext.autodoc' ,
35
55
'sphinx.ext.autosummary' ,
36
- 'sphinx.ext.intersphinx' ,
37
56
'sphinx.ext.viewcode' ,
38
57
'numpydoc' ,
39
58
]
Original file line number Diff line number Diff line change 20
20
-rrequirements.txt
21
21
22
22
[testenv:docs]
23
- basepython = python3.5
23
+ basepython = python2.7
24
24
changedir = docs
25
25
deps =
26
26
-rrequirements_rtfd.txt
You can’t perform that action at this time.
0 commit comments