Skip to content

Conversation

@tiwilliam
Copy link
Owner

Pin documentation dependencies and adjust rsmime module introspection to fix the griffe.collections import error during docs build.

The ModuleNotFoundError: No module named 'griffe.collections' occurred because mkdocstrings and griffe versions were incompatible, and mkdocstrings was unable to properly introspect the compiled rsmime extension module. This PR pins compatible versions, enables mkdocstrings inspection, preloads the rsmime module, and explicitly sets __module__ and sys.modules for the extension's classes and exceptions to aid introspection.


Open in Cursor Open in Web

cursoragent and others added 2 commits October 19, 2025 13:44
…s runtime

- Add mkdocstrings-python and pin griffe to restore griffe.collections API
- Pin setuptools<81 to satisfy mike/pkg_resources deprecation window
- Update mkdocs.yml to allow inspection and preload extension module
- Tweak python/rsmime/__init__.py to set __module__ and map exceptions
- Add rsmime.pyi stub so mkdocstrings can resolve extension symbols
@cursor
Copy link

cursor bot commented Oct 19, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@tiwilliam tiwilliam closed this Oct 20, 2025
@tiwilliam tiwilliam deleted the cursor/build-documentation-with-mkdocstrings-fix-db10 branch October 20, 2025 12:59
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.

3 participants