From 3c75804d9e045684a1e025e031e467b15492a9d4 Mon Sep 17 00:00:00 2001 From: Damien Baty Date: Wed, 20 Sep 2023 18:51:47 +0200 Subject: [PATCH] fix: Use `importlib` to `pkg_resources` is deprecated (https://setuptools.pypa.io/en/latest/pkg_resources.html). Closes #65. --- src/cid/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/cid/__init__.py b/src/cid/__init__.py index 54b59c7..d015e4c 100644 --- a/src/cid/__init__.py +++ b/src/cid/__init__.py @@ -1,4 +1,3 @@ -import pkg_resources +import importlib.metadata - -__version__ = pkg_resources.get_distribution('django-cid').version +__version__ = importlib.metadata.version('django-cid')