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