Skip to content

pkg-resources deprecated for importlib_resources and importlib_metadata #2090

@sten0

Description

@sten0

Hi,

I recently received a report from that

Use of pkg_resources is deprecated in favor of importlib.resources,
importlib.metadata and their backports (importlib_resources, importlib_metadata).
Some useful APIs are also provided by packaging (e.g. requirements and version
parsing). Users should refrain from new usage of pkg_resources and should work
to port to importlib-based solutions.

Python 3.12 in unstable provides both importlib_resources and
importlib_metadata, so no additional dependencies on those packages are needed.

https://bugs.debian.org/1083985

Metadata

Metadata

Assignees

Labels

type:enhancementImprovement of an existing function

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions