From 4cac910058146700594facaf41c36134113edb24 Mon Sep 17 00:00:00 2001 From: Guillermo Aguilar Date: Sat, 12 Sep 2026 23:13:46 +0200 Subject: [PATCH 1/4] Fix docs requirements file so pip reads it --- docs/requirements.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/requirements.txt b/docs/requirements.txt index d5f5c6c8..599ae767 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,5 +1,5 @@ -- sphinx -- numpy -- matplotlib -- sphinxcontrib-mermaid -- jupyter-book +sphinx +numpy +matplotlib +sphinxcontrib-mermaid +jupyter-book From c6452d486934889b425b8e690e99652ee60ab4ad Mon Sep 17 00:00:00 2001 From: Guillermo Aguilar Date: Sat, 12 Sep 2026 23:14:21 +0200 Subject: [PATCH 2/4] Pin jupyter-book below 2.0 for the docs build --- .github/workflows/build-docs.yml | 4 ---- docs/requirements.txt | 2 +- pyproject.toml | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index 49d67bc0..97e3e43c 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -29,10 +29,6 @@ jobs: - name: Install psignifit run: pip install . - - name: Install jupyter_book - shell: bash -l {0} - run: pip install -U git+https://github.com/ExecutableBookProject/jupyter-book.git@main - - name: Build My Book shell: bash -l {0} run: jupyter-book build --warningiserror docs/ diff --git a/docs/requirements.txt b/docs/requirements.txt index 599ae767..93130572 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -2,4 +2,4 @@ sphinx numpy matplotlib sphinxcontrib-mermaid -jupyter-book +jupyter-book>=1.0,<2 diff --git a/pyproject.toml b/pyproject.toml index 39295045..317db835 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,7 +51,7 @@ docs = [ "sphinx-gallery", "sphinx_rtd_theme", "matplotlib", - "jupyter-book==0.14", + "jupyter-book>=1.0,<2", "jupytext>=1.13.3", "jupyterlab_myst", "myst_nb", From c59aef9be1e1505e360939aec6bab6aeaaeec145 Mon Sep 17 00:00:00 2001 From: Guillermo Aguilar Date: Sat, 12 Sep 2026 14:52:37 +0200 Subject: [PATCH 3/4] Restrict setuptools package discovery to psignifit --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 317db835..1f8db03d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -58,3 +58,6 @@ docs = [ "ipywidgets", "sphinx-hoverxref", ] + +[tool.setuptools.packages.find] +include = ["psignifit*"] From 851cce510cfc92191a59c6e740a878cc7367e43c Mon Sep 17 00:00:00 2001 From: Guillermo Aguilar Date: Sat, 12 Sep 2026 15:05:06 +0200 Subject: [PATCH 4/4] Remove unused imports from package __init__ --- psignifit/__init__.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/psignifit/__init__.py b/psignifit/__init__.py index 9f38de71..cbf2066f 100644 --- a/psignifit/__init__.py +++ b/psignifit/__init__.py @@ -3,9 +3,6 @@ Python psignifit - based on Matlab psignifit by Heiko Schütt with help from Felix Wichmann, Jakob Macke and Stefan Harmeling. """ -import os -import subprocess - # import here the main function from .psignifit import psignifit from .tools import pool_blocks