Skip to content

Commit

Permalink
remove the usage pkg resources
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed Ben Makhlouf committed Mar 13, 2024
1 parent 10714fa commit 060e9e1
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions smart_selects/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
from pkg_resources import get_distribution, DistributionNotFound
from importlib.metadata import version

__version__ = version("django-smart-selects")

try:
__version__ = get_distribution("django-smart-selects").version
except DistributionNotFound:
# package is not installed
__version__ = None

0 comments on commit 060e9e1

Please sign in to comment.