Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f8e829b

Browse files
committed
Merge pull request matplotlib#3799 from cimarronm/mocksip_for_docbuild_without_qt
Update to doc/conf.py to allow for building docs without qt installed
2 parents 340ef8d + 8a3dc18 commit f8e829b

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

doc/conf.py

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,9 @@
222222
# (source start file, target name, title, author, document class [howto/manual]).
223223

224224
latex_documents = [
225-
('contents', 'Matplotlib.tex', 'Matplotlib',
226-
'John Hunter, Darren Dale, Eric Firing, Michael Droettboom and the '
227-
'matplotlib development team', 'manual'),
225+
('contents', 'Matplotlib.tex', 'Matplotlib',
226+
'John Hunter, Darren Dale, Eric Firing, Michael Droettboom and the '
227+
'matplotlib development team', 'manual'),
228228
]
229229

230230

@@ -233,7 +233,7 @@
233233
latex_logo = None
234234

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

273273
texinfo_documents = [
274-
("contents", 'matplotlib', 'Matplotlib Documentation',
275-
'John Hunter@*Darren Dale@*Eric Firing@*Michael Droettboom@*'
276-
'The matplotlib development team',
277-
'Matplotlib', "Python plotting package", 'Programming',
278-
1),
274+
("contents", 'matplotlib', 'Matplotlib Documentation',
275+
'John Hunter@*Darren Dale@*Eric Firing@*Michael Droettboom@*'
276+
'The matplotlib development team',
277+
'Matplotlib', "Python plotting package", 'Programming',
278+
1),
279279
]
280280

281281
try:
@@ -312,10 +312,15 @@ class QMainWindow(object):
312312
pass
313313

314314

315+
class MySip(MagicMock):
316+
def getapi(*args):
317+
return 1
318+
319+
315320
mockwxversion = MagicMock()
316321
mockwx = MyWX()
322+
mocksip = MySip()
317323
mockpyqt4 = MyPyQt4()
318-
mocksip = MagicMock()
319324
sys.modules['wxversion'] = mockwxversion
320325
sys.modules['wx'] = mockwx
321326
sys.modules['sip'] = mocksip

0 commit comments

Comments
 (0)