Skip to content

Use importlib.metadata in docs/conf.py - #155

Open
itzzdev09 wants to merge 1 commit into
treasure-data:masterfrom
itzzdev09:drop-pkg-resources
Open

itzzdev09 wants to merge 1 commit into
treasure-data:masterfrom
itzzdev09:drop-pkg-resources

Conversation

@itzzdev09

Copy link
Copy Markdown

docs/conf.py imports pkg_resources only to read the package version for release. setuptools 82 removed pkg_resources, so a docs build in an environment with a current setuptools fails at import time.

This uses importlib.metadata.version(PACKAGE) instead, which returns the same installed-distribution version. I checked that docs/conf.py still parses; I did not build the docs.

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