Skip to content

Deprecate pkg_resources#324

Merged
yihming merged 4 commits intomasterfrom
fix-pkg-resources
Jan 22, 2026
Merged

Deprecate pkg_resources#324
yihming merged 4 commits intomasterfrom
fix-pkg-resources

Conversation

@yihming
Copy link
Member

@yihming yihming commented Jan 21, 2026

This PR is to fix the deprecation issue on pkg_resources package:

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.
  import pkg_resources

Solution: Replace it by importlib.resources which requires Python 3.10+.

@yihming yihming merged commit 06b1df1 into master Jan 22, 2026
5 checks passed
@yihming yihming deleted the fix-pkg-resources branch January 22, 2026 01:52
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