Skip to content

Replace deprecated pkg_resources with importlib.resources for future setuptools compatibility#19

Open
seamile wants to merge 2 commits into
gumblex:masterfrom
seamile:master
Open

Replace deprecated pkg_resources with importlib.resources for future setuptools compatibility#19
seamile wants to merge 2 commits into
gumblex:masterfrom
seamile:master

Conversation

@seamile
Copy link
Copy Markdown

@seamile seamile commented Oct 13, 2025

Fixed issue #16

This PR replaces the use of pkg_resources.resource_stream (deprecated since setuptools 81) with the modern importlib.resources.files() API.

  • Future-proofs zhconv against pkg_resources removal (scheduled for 2025-11-30)
  • Adds fallback to importlib_resources for Python < 3.9
  • Merge the detached commit 0f066eb (v1.4.3) into the master branch
  • Updated version to v1.4.4

Tested with Python 3.8–3.12.

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