Skip to content

Remove pkg_resources (deprecated)#962

Merged
dgarcia360 merged 4 commits intomasterfrom
fix-pkg-resources
Dec 18, 2023
Merged

Remove pkg_resources (deprecated)#962
dgarcia360 merged 4 commits intomasterfrom
fix-pkg-resources

Conversation

@dgarcia360
Copy link
Copy Markdown
Collaborator

Motivation

Use of pkg_resources is deprecated in favor of importlib.resources, importlib.metadata and their backports (importlib_resources, importlib.metadata). Some useful APIs are also provided by packaging (e.g. requirements and version parsing). Users should refrain from new usage of pkg_resources and should work to port to importlib-based solutions.

From https://setuptools.pypa.io/en/latest/pkg_resources.html

Replaces pkg_resources for importlib.metadata

How to test

Docs should build without errors.

Comment thread pyproject.toml
Copy link
Copy Markdown
Collaborator

@annastuchlik annastuchlik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've build this PR locally without any errors.

Copy link
Copy Markdown
Collaborator

@annastuchlik annastuchlik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks.

@dgarcia360 dgarcia360 merged commit dd2c370 into master Dec 18, 2023
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