Closed Bug 1894635 Opened 1 month ago Closed 1 month ago

glean-py: Replace deprecated pkg_resources functionality

Categories

(Data Platform and Tools :: Glean: SDK, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: janerik, Assigned: janerik)

References

Details

Attachments

(1 file)

For a while we got those deprecation warnings:

glean-core/python/glean/__init__.py:10
  /Users/jer/mozilla/src/glean/glean-core/python/glean/__init__.py:10: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
    from pkg_resources import get_distribution, DistributionNotFound

with Python 3.12 distutils that contains that went away, and we need to explicitly depend on setuptools.
But the stuff is still deprecated and we should remove the usage.

Blocks: 1894595
No longer depends on: 1894595
Priority: -- → P1
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: