Skip to content

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

1 participant