From 9eca6cb20213af0613a27823e8f6ff5c95639317 Mon Sep 17 00:00:00 2001 From: Kori Kuzma Date: Thu, 26 Sep 2024 01:24:43 +1000 Subject: [PATCH] fix: resolve package not found error on aws instance (#6) --- src/seqrepo_rest_service/seqrepo/routes/ping.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/seqrepo_rest_service/seqrepo/routes/ping.py b/src/seqrepo_rest_service/seqrepo/routes/ping.py index 4ed7361..9b5ef94 100644 --- a/src/seqrepo_rest_service/seqrepo/routes/ping.py +++ b/src/seqrepo_rest_service/seqrepo/routes/ping.py @@ -1,15 +1,15 @@ import biocommons.seqrepo import bioutils -from importlib import metadata -from ...threadglobals import get_seqrepo +from seqrepo_rest_service import __version__ +from seqrepo_rest_service.threadglobals import get_seqrepo def get(): sr = get_seqrepo() return { - "version": metadata.version("seqrepo-rest-service"), + "version": __version__, "url": "https://github.com/biocommons/seqrepo-rest-service/", "dependencies": { "seqrepo": {