Skip to content

Replace deprecated pkg_resources with importlib.metadata in docs/conf.py#254

Merged
dfm merged 2 commits intomasterfrom
copilot/fix-read-the-docs-failures
Mar 15, 2026
Merged

Replace deprecated pkg_resources with importlib.metadata in docs/conf.py#254
dfm merged 2 commits intomasterfrom
copilot/fix-read-the-docs-failures

Conversation

Copy link
Contributor

Copilot AI commented Mar 15, 2026

RTD builds fail at docs/conf.py line 2 because pkg_resources is no longer available in the build environment.

  • Replace pkg_resources.get_distribution with importlib.metadata.version (stdlib since Python 3.8; project requires ≥3.9)
  • Add fallback __version__ = "unknown" in the except block — the original pass left __version__ undefined, causing a NameError on lines 26-27

📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.

Co-authored-by: dfm <350282+dfm@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix Read the Docs failures due to missing pkg_resources Replace deprecated pkg_resources with importlib.metadata in docs/conf.py Mar 15, 2026
Copilot AI requested a review from dfm March 15, 2026 15:14
Copilot finished work on behalf of dfm March 15, 2026 15:14
@dfm dfm marked this pull request as ready for review March 15, 2026 15:33
@dfm dfm merged commit 8f5b994 into master Mar 15, 2026
6 checks passed
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.

2 participants