Skip to content

ci: build the docs on Python 3.13 from the doc extra - #163

Merged
oesteban merged 2 commits into
masterfrom
ci/docs-build
Dec 3, 2026
Merged

oesteban merged 2 commits into
masterfrom
ci/docs-build

Conversation

@oesteban

@oesteban oesteban commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

Summary

build_docs fails before Sphinx starts. It installed a 2022 conda lockfile (Python 3.9, Sphinx 4.5); its cache expired, and conda now solves that environment until CircleCI kills the job (#160, job 5274). Python 3.9 and Sphinx 4.5 could not build the package anymore anyway.

 .circleci/config.yml  build_docs
-  machine executor; Miniconda py39 4.11; conda env update -f docs/environment.yml
-  restore/save cache env-v7-*; FSLOUTPUTTYPE, SUBJECTS_DIR
+  python/default executor, Python 3.13
+  apt-get install pandoc  # nbsphinx converts the notebooks with it (the lockfile had it)
+  pip install -e '.[doc]'
   git submodule update --init; make -C docs SPHINXOPTS="-W" html
 pyproject.toml  [doc]
-  "sphinx ~= 4.0"        # Sphinx 4.5 imports imghdr, removed in Python 3.13
+  "sphinx", "ipython"    # IPython provides the notebooks' ipython3 lexer
 docs/conf.py
-  language = None        # Sphinx now requires a language code
+  language = 'en'
-docs/environment.yml     # nothing else read it

It unblocks the docs builds of #160 and of the docs PRs #151 to #153. Once this merges, master is merged into #160.

Evidence

  • Before: the job log ends in Solving environment: ... Received "killed" signal, with no cache for any env-v7- key. The pinned extra on Python 3.13 stops at Could not import extension sphinx.builders.epub3 (exception: No module named 'imghdr').
  • After: build_docs passes on this branch (job). Locally, as the job runs it (fresh Python 3.13, pip install -e '.[doc]', make -C docs SPHINXOPTS="-W" html, a PATH with only the environment, /usr/bin, /bin and pandoc), Sphinx 9.2.0:
    master:          Build finished.   0 warnings
    feat/archive-2:  Build finished.   0 warnings
    
  • What each change fixes: without pandoc, nbsphinx stops at PandocMissing in notebooks/01_Quickstart.ipynb (first run of this branch); without IPython, -W fails on 29 Pygments lexer name 'ipython3' is not known warnings from the notebooks; without language = 'en', on an invalid configuration value.

Merge Danger

Door: two-way

Blast Radius: CI only

The docs build and the tag-only deploy_pypi, which requires build_docs. Reverting restores the old job, which does not run without its cache. The doc extra now installs current Sphinx, for contributors who build the docs locally.

oesteban and others added 2 commits December 3, 2026 16:21
build_docs installed a 2022 conda lockfile (Python 3.9, Sphinx 4.5) on a
machine executor. Once its cache expired, conda kept solving the
environment until CircleCI killed the job, and Python 3.9 and Sphinx 4.5
can no longer build the package anyway (Sphinx 4.5 needs imghdr, gone
in Python 3.13). The job now runs on the python/default 3.13 executor
and installs the package with its doc extra.

The doc extra drops the Sphinx 4 pin and adds IPython, whose lexer
highlights the notebooks' ipython3 cells; conf.py sets language = 'en',
which Sphinx now requires. docs/environment.yml had no other users.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
nbsphinx converts the notebooks' Markdown cells with pandoc, which the
conda lockfile provided and the python/default image lacks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@oesteban
oesteban marked this pull request as ready for review December 3, 2026 15:25
@oesteban
oesteban merged commit 418e87d into master Dec 3, 2026
13 of 14 checks passed
@oesteban
oesteban deleted the ci/docs-build branch December 3, 2026 15:25
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-03T15:28:05.640118Z 601a95b Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

oesteban added a commit that referenced this pull request Dec 3, 2026
Before tagging 26.0.0rc1: the docs pull requests
(#151, #152,
#153) and the docs build fix
(#163) had no entry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant