Skip to content

Commit

Permalink
refactor: use importlib instead of pkg_resources (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsstevenson committed Jun 13, 2024
1 parent ade1bc7 commit 87e1d87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/seqrepo_rest_service/seqrepo/routes/ping.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import biocommons.seqrepo
import bioutils
from pkg_resources import get_distribution
from importlib import metadata

from ...threadglobals import get_seqrepo

Expand All @@ -9,7 +9,7 @@ def get():
sr = get_seqrepo()

return {
"version": get_distribution("seqrepo-rest-service").version,
"version": metadata.version("seqrepo-rest-service"),
"url": "https://github.com/biocommons/seqrepo-rest-service/",
"dependencies": {
"seqrepo": {
Expand Down

0 comments on commit 87e1d87

Please sign in to comment.