Skip to content

Commit

Permalink
Replace pkg_resources with importlib.metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
jjnesbitt committed Jul 25, 2022
1 parent 0207386 commit de19b78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dandiapi/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from importlib.metadata import version

# This project module is imported for us when Django starts. To ensure that Celery app is always
# defined prior to any shared_task definitions (so those tasks will bind to the app), import
# the Celery module here for side effects.
from pkg_resources import get_distribution

from .celery import app as _celery_app # noqa: F401

__version__ = get_distribution('dandiapi').version
__version__ = version('dandiapi')

0 comments on commit de19b78

Please sign in to comment.