Skip to content

Commit

Permalink
Officially declare pkg_resources as deprecated. Closes #2531.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Apr 3, 2021
1 parent 30cf782 commit 8fe85c2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/pkg_resources.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ eggs, support for merging packages that have separately-distributed modules or
subpackages, and APIs for managing Python's current "working set" of active
packages.

Use of ``pkg_resources`` is discouraged in favor of
`importlib.resources <https://docs.python.org/3/library/importlib.html#module-importlib.resources>`_,
`importlib.metadata <https://docs.python.org/3/library/importlib.metadata.html>`_,
and their backports (`resources <https://pypi.org/project/importlib_resources>`_,
`metadata <https://pypi.org/project/importlib_metadata>`_).
Please consider using those libraries instead of pkg_resources.


.. contents:: **Table of Contents**

Expand Down

0 comments on commit 8fe85c2

Please sign in to comment.