From af32cf6b310310d2fb70006f95ec4a99a3632c01 Mon Sep 17 00:00:00 2001 From: Jonas Mago Date: Fri, 17 Apr 2026 06:59:41 -0600 Subject: [PATCH 1/4] Add Zuna to related software list --- doc/sphinxext/related_software.py | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/sphinxext/related_software.py b/doc/sphinxext/related_software.py index d1df773b380..18df35424d7 100644 --- a/doc/sphinxext/related_software.py +++ b/doc/sphinxext/related_software.py @@ -35,6 +35,7 @@ "niseq", "sesameeg", "mne-kit-gui", # moved to its own env in the installers + "zuna", } # If it's not available on PyPI, add it to this dict: From ec8dcb027b5518180052f7284c13260f21cbda34 Mon Sep 17 00:00:00 2001 From: Daniel McCloy Date: Fri, 17 Apr 2026 10:11:00 -0500 Subject: [PATCH 2/4] also add to txt file --- doc/sphinxext/related_software_nodeps.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/sphinxext/related_software_nodeps.txt b/doc/sphinxext/related_software_nodeps.txt index 45c216d72dd..2b2e0c68945 100644 --- a/doc/sphinxext/related_software_nodeps.txt +++ b/doc/sphinxext/related_software_nodeps.txt @@ -4,3 +4,4 @@ fsleyes mne-kit-gui mne-videobrowser hedtools # because it limits our Pandas version currently +zuna # requires pytorch From 227d867a2116b20f050e7ef258214d25c66e536b Mon Sep 17 00:00:00 2001 From: Daniel McCloy Date: Fri, 17 Apr 2026 10:16:20 -0500 Subject: [PATCH 3/4] noqa --- doc/sphinxext/related_software.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/sphinxext/related_software.py b/doc/sphinxext/related_software.py index 18df35424d7..c31f33ea4b2 100644 --- a/doc/sphinxext/related_software.py +++ b/doc/sphinxext/related_software.py @@ -222,7 +222,7 @@ def run(self): return [my_list] -def setup(app): +def setup(app): # noqa: D103 app.add_directive("related-software", RelatedSoftwareDirective) # Run it as soon as this is added as a Sphinx extension so that any errors # / new packages are reported early. The next call in run() will be cached. From 63370e8b354b542ea08fd6ce631b69652b633301 Mon Sep 17 00:00:00 2001 From: Daniel McCloy Date: Fri, 17 Apr 2026 10:21:34 -0500 Subject: [PATCH 4/4] better doc of process --- doc/sphinxext/related_software.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/sphinxext/related_software.py b/doc/sphinxext/related_software.py index c31f33ea4b2..d1c29f74446 100644 --- a/doc/sphinxext/related_software.py +++ b/doc/sphinxext/related_software.py @@ -5,6 +5,10 @@ 1. Add it to the MNE-installers if possible, and it will automatically appear. 2. If it's on PyPI and not in the MNE-installers, add it to the PYPI_PACKAGES set. 3. If it's not on PyPI, add it to the MANUAL_PACKAGES dictionary. + +If PyPI or manual, also add package name to `related_software.txt` or +`related_software_nodeps.txt` so that it's installed at doc-build time (for package +metadata querying). """ # Authors: The MNE-Python contributors.