Skip to content

fix(docs): drop unmaintained m2r2 to unbreak readthedocs build#105

Open
mrvollger wants to merge 1 commit intomainfrom
fix-readthedocs
Open

fix(docs): drop unmaintained m2r2 to unbreak readthedocs build#105
mrvollger wants to merge 1 commit intomainfrom
fix-readthedocs

Conversation

@mrvollger
Copy link
Copy Markdown
Member

Summary

  • RTD builds have been failing with Could not import extension m2r2 (exception: No module named 'pkg_resources'). m2r2 imports pkg_resources at module load, which newer setuptools/Python environments no longer ship by default.
  • m2r2 was registered as a Sphinx extension and .md was in source_suffix, but no markdown files are included anywhere in py-ft/docs/ (no mdinclude, no .. include:: *.md), so the extension was dead weight.
  • Removing m2r2 from extensions and requirements.txt eliminates the failure with no functional loss.

Reference failing build (commit 83d5eec): https://app.readthedocs.org/projects/py-ft/builds/32435915/

Test plan

  • RTD PR-preview build succeeds on this PR
  • Rendered docs still show index.rst, api.rst, and the vignette notebooks correctly

🤖 Generated with Claude Code

m2r2 imports pkg_resources at module load, which is no longer shipped
in newer Python/setuptools environments. Sphinx fails with
"Could not import extension m2r2 (exception: No module named 'pkg_resources')"
during RTD's build. m2r2 was registered as an extension and .md was in
source_suffix, but no markdown files are included anywhere in the docs
tree, so the dependency is dead weight. Removing m2r2 from extensions
and requirements eliminates the failure with no functional loss.

Co-Authored-By: Claude Opus 4.7 <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