Skip to content

pkg_resources deprecated with Python 3.12#37

Merged
jotelha merged 5 commits intojic-dtool:masterfrom
jotelha:2024-12-13-pkg-resources-deprecated
Dec 15, 2024
Merged

pkg_resources deprecated with Python 3.12#37
jotelha merged 5 commits intojic-dtool:masterfrom
jotelha:2024-12-13-pkg-resources-deprecated

Conversation

@jotelha
Copy link
Copy Markdown
Member

@jotelha jotelha commented Dec 13, 2024

The use of pkg_resources has been deprecated with Python 12, see #29

This PR uses importlib.metadata.entry_points instead, see https://www.perplexity.ai/search/is-pkg-resources-deprecated-wi-P461N47NSXuy4HoaxbML2A#0.

This will, however, likely break for Python < 3.10-

@jotelha
Copy link
Copy Markdown
Member Author

jotelha commented Dec 13, 2024

Implemented Python-version specific entrypoint handling.

@jotelha jotelha marked this pull request as ready for review December 13, 2024 10:43
Copy link
Copy Markdown
Contributor

@tjelvar-olsson tjelvar-olsson left a comment

Choose a reason for hiding this comment

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

Thank you

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