diff --git a/silk/__init__.py b/silk/__init__.py index c18af4b9..aa4f06d2 100644 --- a/silk/__init__.py +++ b/silk/__init__.py @@ -1,6 +1,3 @@ -from pkg_resources import DistributionNotFound, get_distribution +from importlib.metadata import version -try: - __version__ = get_distribution("django-silk").version -except DistributionNotFound: - pass +__version__ = version("django-silk")