Skip to content

Commit

Permalink
fix: Use importlib to
Browse files Browse the repository at this point in the history
`pkg_resources` is deprecated (https://setuptools.pypa.io/en/latest/pkg_resources.html).

Closes #65.
  • Loading branch information
dbaty committed Sep 20, 2023
1 parent eb9f05a commit 3c75804
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/cid/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import pkg_resources
import importlib.metadata


__version__ = pkg_resources.get_distribution('django-cid').version
__version__ = importlib.metadata.version('django-cid')

0 comments on commit 3c75804

Please sign in to comment.