Skip to content

Commit e4bebb8

Browse files
committed
docs: Make pkg_resources warning more visible (#3530)
2 parents bc68a60 + 62c45bc commit e4bebb8

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

docs/pkg_resources.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ eggs, support for merging packages that have separately-distributed modules or
1010
subpackages, and APIs for managing Python's current "working set" of active
1111
packages.
1212

13-
Use of ``pkg_resources`` is discouraged in favor of
14-
`importlib.resources <https://docs.python.org/3/library/importlib.html#module-importlib.resources>`_,
15-
`importlib.metadata <https://docs.python.org/3/library/importlib.metadata.html>`_,
16-
and their backports (:pypi:`importlib_resources`,
17-
:pypi:`importlib_metadata`).
18-
Please consider using those libraries instead of pkg_resources.
13+
.. attention::
14+
Use of ``pkg_resources`` is discouraged in favor of
15+
`importlib.resources <https://docs.python.org/3/library/importlib.html#module-importlib.resources>`_,
16+
`importlib.metadata <https://docs.python.org/3/library/importlib.metadata.html>`_,
17+
and their backports (:pypi:`importlib_resources`,
18+
:pypi:`importlib_metadata`).
19+
Please consider using those libraries instead of pkg_resources.
1920

2021

2122
--------

0 commit comments

Comments
 (0)