Skip to content
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

Remove pkg_resources for Python >=3.9 #673

Merged
merged 12 commits into from
Oct 1, 2023

Conversation

cmacdonald
Copy link
Contributor

@cmacdonald cmacdonald commented Sep 19, 2023

As noted in #670 pkg_resources is deprecated as an API.

For Python >=3.9, there is sufficient importlib.resources API to replace this. There is a backport (see https://importlib-resources.readthedocs.io/), but I dont think we should make a dependency on importlib_resources.

Hence, this PR addresses the warning by using the importlib.resources when it is fully available (Python 3.9+).

Please consider this PR for 1.6.0 release cycle too. All GHAs pass.

jnius_config.py Outdated Show resolved Hide resolved
jnius_config.py Outdated Show resolved Hide resolved
Copy link
Member

@misl6 misl6 left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you!

@misl6 misl6 merged commit d3525a3 into kivy:master Oct 1, 2023
174 checks passed
@cmacdonald cmacdonald deleted the pkg_resources_670 branch October 1, 2023 17:04
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