8000 Tweak dependency checking in doc/conf.py. · oscargus/matplotlib@bd632ff · GitHub
[go: up one dir, main page]

Skip to content

Commit bd632ff

Browse files
committed
Tweak dependency checking in doc/conf.py.
- Autogen most of the checked list. - Replace outdated pydata_sphinx_theme entry. - matplotlib and its dependency pillow don't need to be explicitly listed, as we already import matplotlib at the top of the file anyways so if it's not importable, we won't even reach _check_dependencies.
1 parent 826e685 commit bd632ff

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

doc/conf.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,11 @@
8989

9090
def _check_dependencies():
9191
names = {
92+
**{ext: ext.split(".")[0] for ext in extensions},
93+
# Explicitly list deps that are not extensions, or whose PyPI package
94+
# name does not match the (toplevel) module name.
9295
"colorspacious": 'colorspacious',
93-
"IPython.sphinxext.ipython_console_highlighting": 'ipython',
94-
"matplotlib": 'matplotlib',
95-
"numpydoc": 'numpydoc',
96-
"PIL.Image": 'pillow',
97-
"pydata_sphinx_theme": 'pydata_sphinx_theme',
98-
"sphinx_copybutton": 'sphinx_copybutton',
99-
"sphinx_gallery": 'sphinx_gallery',
96+
"mpl_sphinx_theme": 'mpl_sphinx_theme',
10097
"sphinxcontrib.inkscapeconverter": 'sphinxcontrib-svg2pdfconverter',
10198
}
10299
missing = []

0 commit comments

Comments
 (0)
0