Skip to content

Remove pkg_resources due to depracation Python >= 3.8 #2360

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Mr-FuzzyPenguin
Copy link

Motivation

The changes is quite simple: It removes the pkg_resources dependency so that in future Python versions it could still run. Any version of Python below 3.8 is mostly discontinued nowadays, and a warning with the following:
UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
pops up when you run it currently. With the new changes, it won't have this issue.

Proposed changes

  • Changed __init__.py to no longer use pkg_resources, instead use importlib.metadata

Test

Code:
N/A, still builds, and works fine.

Result:
N/A

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