Skip to content

pkg_resources deprecation #428

@rossjjennings

Description

@rossjjennings

While debugging some issues with a new environment, I noticed that from enterprise.pulsar import Pulsar raises a DeprecationWarning:

[...]/enterprise/signals/utils.py:13: 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.
  from pkg_resources import Requirement, resource_filename

Apparently pkg_resources (from setuptools), which is used in signals/utils.py, has been deprecated in favor of the native Python module importlib.resources.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions