|
21 | 21 | # import sys |
22 | 22 | # sys.path.insert(0, os.path.abspath('.')) |
23 | 23 |
|
24 | | -from unittest import mock |
25 | 24 | import os.path as op |
26 | 25 | import sys |
27 | | -# include parent directory |
28 | | -pdir = op.dirname(op.dirname(op.abspath(__file__))) |
29 | | -sys.path.insert(0, pdir) |
30 | | -# include extenstions |
31 | | -sys.path.append(op.abspath('extensions')) |
32 | 26 |
|
33 | | -# Mock all dependencies |
34 | | -install_requires = ["lmfit", "numpy", "matplotlib", "pyyaml", "scipy", |
35 | | - "sympy", "simplejson", "wxPython"] |
| 27 | +import pycorrfit |
36 | 28 |
|
37 | | -for mod_name in install_requires: |
38 | | - sys.modules[mod_name] = mock.Mock() |
| 29 | +# include extensions |
| 30 | +sys.path.append(op.abspath('extensions')) |
39 | 31 |
|
40 | 32 | # http://www.sphinx-doc.org/en/stable/ext/autodoc.html#confval-autodoc_member_order |
41 | 33 | # Order class attributes and functions in separate blocks |
42 | 34 | autodoc_member_order = 'bysource' |
43 | | -autodoc_mock_imports = install_requires |
44 | 35 |
|
45 | 36 | # Display link to GitHub repo instead of doc on rtfd |
46 | 37 | rst_prolog = """ |
|
92 | 83 | # |
93 | 84 | # The full version, including alpha/beta/rc tags. |
94 | 85 | # This gets 'version' |
95 | | -from pycorfit import __version__ as version |
96 | | -release = version #@UndefinedVariable |
| 86 | +release = pycorrfit.__version__ |
97 | 87 | # The language for content autogenerated by Sphinx. Refer to documentation |
98 | 88 | # for a list of supported languages. |
99 | 89 | # |
100 | 90 | # This is also used if you do content translation via gettext catalogs. |
101 | 91 | # Usually you set "language" from the command line for these cases. |
102 | | -language = None |
| 92 | +language = "en" |
103 | 93 |
|
104 | 94 | # List of patterns, relative to source directory, that match files and |
105 | 95 | # directories to ignore when looking for source files. |
|
0 commit comments