Skip to content

gh: add python39-tomli Cygwin package for Sphinx 7.4 - #697

Merged
xdelaruelle merged 1 commit into
envmodules:mainfrom
xdelaruelle:cygwin-sphinx-tomli
Sep 9, 2026
Merged

gh: add python39-tomli Cygwin package for Sphinx 7.4#697
xdelaruelle merged 1 commit into
envmodules:mainfrom
xdelaruelle:cygwin-sphinx-tomli

Conversation

@xdelaruelle

@xdelaruelle xdelaruelle commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

Windows CI jobs started failing on every run (see #693) after Cygwin updated python39-sphinx from 4.4.0 to 7.4.7. On Python < 3.11, Sphinx 7.4 imports the tomli module but the Cygwin package does not declare python39-tomli as a dependency, so the documentation build aborts with:

Extension error:
Could not import extension sphinx.builders.changes (exception: No module named 'tomli')

This change explicitly installs python39-tomli on the three Windows jobs, alongside the other Sphinx dependencies already listed. The python39-docutils=0.18.1-1 pin is kept: Sphinx 7.4.7 builds the man and text documentation fine with this docutils version.

It also fixes the misspelled python39-sphinxcontrib-jsmath package name on the native-cmd and native-pwsh jobs (python39-sphinxco ntrib-jsmath), which made Cygwin setup silently skip that package.

Cygwin updated python39-sphinx from 4.4.0 to 7.4.7. On Python < 3.11,
Sphinx 7.4 imports the tomli module but the Cygwin package does not
declare python39-tomli as a dependency, so the documentation build now
fails on every Windows CI job:

    Could not import extension sphinx.builders.changes (exception: No
    module named 'tomli')

Explicitly install python39-tomli alongside the other Sphinx dependencies
already listed. The python39-docutils=0.18.1-1 pin is kept as Sphinx 7.4.7
builds the man and text documentation fine with this docutils version.

Also fix the misspelled python39-sphinxcontrib-jsmath package name on the
native-cmd and native-pwsh jobs, which silently skipped its installation.

Assisted-by: Claude:claude-fable-5-1
Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr>
@codecov

codecov Bot commented Sep 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@xdelaruelle
xdelaruelle merged commit 31741fc into envmodules:main Sep 9, 2026
22 checks passed
@xdelaruelle
xdelaruelle deleted the cygwin-sphinx-tomli branch September 9, 2026 16:55
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