Skip to content

Commit 4f387ff

Browse files
authored
Change pkg-resources recommendation to importlib-metadata (#588)
1 parent bc4ff38 commit 4f387ff

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

HISTORY.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ Pending
1111
* Converted setuptools metadata to configuration file. This meant removing the
1212
``__version__`` attribute from the package. If you want to inspect the
1313
installed version, use
14-
``pkg_resources.get_distribution("django-mysql").version``
15-
(`docs <https://setuptools.readthedocs.io/en/latest/pkg_resources.html#getting-or-creating-distributions>`__).
14+
``importlib.metadata.version("django-mysql")``
15+
(`docs <https://docs.python.org/3.8/library/importlib.metadata.html#distribution-versions>`__ /
16+
`backport <https://pypi.org/project/importlib-metadata/>`__).
1617

1718
3.2.0 (2019-06-14)
1819
------------------

0 commit comments

Comments
 (0)