Skip to content

Commit

Permalink
Replace deprecated pkg_resources method
Browse files Browse the repository at this point in the history
  • Loading branch information
KOliver94 committed Sep 18, 2023
1 parent 174cdd6 commit 049bfa0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rest_framework_simplejwt/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from pkg_resources import DistributionNotFound, get_distribution
from importlib.metadata import PackageNotFoundError, version

try:
__version__ = get_distribution("djangorestframework_simplejwt").version
except DistributionNotFound:
__version__ = version("djangorestframework_simplejwt")
except PackageNotFoundError:

Check warning on line 5 in rest_framework_simplejwt/__init__.py

View check run for this annotation

Codecov / codecov/patch

rest_framework_simplejwt/__init__.py#L5

Added line #L5 was not covered by tests
# package is not installed
__version__ = None

0 comments on commit 049bfa0

Please sign in to comment.