Skip to content

Commit

Permalink
fix: Replace use of deprecated pkg_resources by importlib
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 a6f2387
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cid/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import pkg_resources
import importlib.metadata


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

0 comments on commit a6f2387

Please sign in to comment.