Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bd632ff

Browse filesBrowse 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
Copy full SHA for bd632ff

File tree

Expand file treeCollapse file tree

1 file changed

+4
-7
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-7
lines changed

‎doc/conf.py

Copy file name to clipboardExpand all lines: doc/conf.py
+4-7Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.