diff --git a/CHANGES.rst b/CHANGES.rst index b926f01..44d6e19 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,6 +1,14 @@ Changes ======= +Unreleased +---------- + +* Removed usage of pkg_resource to avoid derecation + warnings. If you want to inspect the installed version, + use ``importlib.metadata.version("django-widget-tweaks")`` + (`docs `__ / + `backport `__). 1.4.12 (2022-01-13) ------------------- diff --git a/widget_tweaks/__init__.py b/widget_tweaks/__init__.py index d938383..e69de29 100644 --- a/widget_tweaks/__init__.py +++ b/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