Skip to content

Commit

Permalink
Merge pull request #3799 from cimarronm/mocksip_for_docbuild_without_qt
Browse files Browse the repository at this point in the history
Update to doc/conf.py to allow for building docs without qt installed
  • Loading branch information
jenshnielsen committed Nov 15, 2014
2 parents 340ef8d + 8a3dc18 commit f8e829b
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions doc/conf.py
Expand Up @@ -222,9 +222,9 @@
# (source start file, target name, title, author, document class [howto/manual]).

latex_documents = [
('contents', 'Matplotlib.tex', 'Matplotlib',
'John Hunter, Darren Dale, Eric Firing, Michael Droettboom and the '
'matplotlib development team', 'manual'),
('contents', 'Matplotlib.tex', 'Matplotlib',
'John Hunter, Darren Dale, Eric Firing, Michael Droettboom and the '
'matplotlib development team', 'manual'),
]


Expand All @@ -233,7 +233,7 @@
latex_logo = None

# Additional stuff for the LaTeX preamble.
latex_preamble =r"""
latex_preamble = r"""
% In the parameters section, place a newline after the Parameters
% header. (This is stolen directly from Numpy's conf.py, since it
% affects Numpy-style docstrings).
Expand Down Expand Up @@ -271,11 +271,11 @@
""" % matplotlib.__version__numpy__

texinfo_documents = [
("contents", 'matplotlib', 'Matplotlib Documentation',
'John Hunter@*Darren Dale@*Eric Firing@*Michael Droettboom@*'
'The matplotlib development team',
'Matplotlib', "Python plotting package", 'Programming',
1),
("contents", 'matplotlib', 'Matplotlib Documentation',
'John Hunter@*Darren Dale@*Eric Firing@*Michael Droettboom@*'
'The matplotlib development team',
'Matplotlib', "Python plotting package", 'Programming',
1),
]

try:
Expand Down Expand Up @@ -312,10 +312,15 @@ class QMainWindow(object):
pass


class MySip(MagicMock):
def getapi(*args):
return 1


mockwxversion = MagicMock()
mockwx = MyWX()
mocksip = MySip()
mockpyqt4 = MyPyQt4()
mocksip = MagicMock()
sys.modules['wxversion'] = mockwxversion
sys.modules['wx'] = mockwx
sys.modules['sip'] = mocksip
Expand Down

0 comments on commit f8e829b

Please sign in to comment.