Skip to content

use importlib instead of pkg_resources to get pkg version#131

Closed
m-birke wants to merge 1 commit intomicrosoft:mainfrom
m-birke:feature/get-version-with-importlib
Closed

use importlib instead of pkg_resources to get pkg version#131
m-birke wants to merge 1 commit intomicrosoft:mainfrom
m-birke:feature/get-version-with-importlib

Conversation

@m-birke
Copy link

@m-birke m-birke commented Oct 31, 2025

with setuptools v81 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.

Use of pkg_resources is deprecated in favor of importlib.resources, importlib.metadata and their backports

since you set requires-python = ">=3.10" importlib can be used

@yanghan234
Copy link
Collaborator

Problem fixed in #141 . Thanks for reporting this.

@yanghan234 yanghan234 closed this Feb 25, 2026
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