Skip to content

Replace pkg_resources in docs config#448

Draft
Mirochill wants to merge 1 commit into
ecmwf:masterfrom
Mirochill:fix-298-docs-importlib-metadata
Draft

Replace pkg_resources in docs config#448
Mirochill wants to merge 1 commit into
ecmwf:masterfrom
Mirochill:fix-298-docs-importlib-metadata

Conversation

@Mirochill

Copy link
Copy Markdown

Summary

  • replace the pkg_resources.get_distribution() lookup in docs/conf.py with importlib.metadata
  • keep a source-version fallback for environments without stdlib importlib.metadata
  • continue deriving the short Sphinx version from the resolved release

Fixes #298.

Validation

  • git diff --check
  • Not run locally

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RFE: Replace use of pkg_resources with importlib.metadata

1 participant