We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c032492 commit 0c7213aCopy full SHA for 0c7213a
CHANGES.rst
@@ -1,6 +1,14 @@
1
Changes
2
=======
3
4
+Unreleased
5
+----------
6
+
7
+* Removed usage of pkg_resource to avoid derecation
8
+ warnings. If you want to inspect the installed version,
9
+ use ``importlib.metadata.version("django-widget-tweaks")``
10
+ (`docs <https://docs.python.org/3.8/library/importlib.metadata.html#distribution-versions>`__ /
11
+ `backport <https://pypi.org/project/importlib-metadata/>`__).
12
13
1.4.12 (2022-01-13)
14
-------------------
widget_tweaks/__init__.py
@@ -1,7 +0,0 @@
-from pkg_resources import get_distribution, DistributionNotFound
-
-try:
- __version__ = get_distribution("django-widget-tweaks").version
-except DistributionNotFound:
- # package is not installed
- __version__ = None
0 commit comments