Skip to content

fix(docs): update sphinxemoji to fix Python 3.12+ compatibility#2111

Closed
thanhlim wants to merge 27 commits intospec-first:mainfrom
ThriveMarket:fix/sphinxemoji-python312
Closed

fix(docs): update sphinxemoji to fix Python 3.12+ compatibility#2111
thanhlim wants to merge 27 commits intospec-first:mainfrom
ThriveMarket:fix/sphinxemoji-python312

Conversation

@thanhlim
Copy link
Copy Markdown
Contributor

@thanhlim thanhlim commented Mar 8, 2026

Relates to #2032

Summary

Updates sphinxemoji from 0.2.0 to 0.3.1 to fix Python 3.12+ compatibility.

sphinxemoji 0.2.0 uses deprecated pkg_resources which was removed in Python 3.12+, causing docs builds to fail with:

ModuleNotFoundError: No module named 'pkg_resources'

sphinxemoji 0.3.1 uses importlib.resources instead and supports Python >= 3.9, which aligns with connexion's supported Python versions (3.9-3.14).

Changes

feteu and others added 27 commits February 9, 2025 10:57
sphinxemoji 0.2.0 uses `pkg_resources` which is deprecated and not
available by default in Python 3.12+. This causes the docs build to
fail with:

    ModuleNotFoundError: No module named 'pkg_resources'

Update to sphinxemoji 0.3.1 which uses `importlib.resources` instead.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@chrisinmtown
Copy link
Copy Markdown
Contributor

I think it's great that you're fixing the documentation build. I have not seen any maintainer activity here for a very long time. I don't know if they would prefer a tiny pull request, just the update to the pyproject.TOML file, or if they'll be OK with this large change.

@thanhlim
Copy link
Copy Markdown
Contributor Author

Superceded with a very simple upgrade instead.

@thanhlim thanhlim closed this Mar 26, 2026
Ruwann added a commit that referenced this pull request Apr 25, 2026
## Summary
- Update `sphinxemoji` from `0.2.0` to `0.3.1` in `pyproject.toml`
- `sphinxemoji 0.2.0` uses `pkg_resources` which was removed in Python
3.12, causing doc builds to fail
- `0.3.1` uses `importlib.resources` instead

Supersedes #2111 (which included unrelated changes).

## Test plan
- [ ] CI passes (doc build succeeds on Python 3.12+)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Ruwann <ruwanlambrichts@gmail.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.

3 participants