#87 remove version pins for markupsafe, flask and werkzeug

also remove dependency on flask-api
This commit is contained in:
Alok Saldanha
2024-03-10 09:31:39 -04:00
parent 6a2bc409db
commit 5d29153544
9 changed files with 49 additions and 20 deletions
+3 -3
View File
@@ -11,7 +11,7 @@ import time
from threading import Thread
from typing import List
from flask_api import status
from http import HTTPStatus
from cellxgene_gateway import env
from cellxgene_gateway.cache_entry import CacheEntry, CacheEntryStatus
@@ -53,7 +53,7 @@ class BackendCache:
return matches[0]
else:
raise CellxgeneException(
status.HTTP_500_INTERNAL_SERVER_ERROR,
HTTPStatus.INTERNAL_SERVER_ERROR,
"Found " + str(len(matches)) + " for " + path,
)
@@ -71,7 +71,7 @@ class BackendCache:
return matches[0]
else:
raise CellxgeneException(
status.HTTP_500_INTERNAL_SERVER_ERROR,
HTTPStatus.INTERNAL_SERVER_ERROR,
"Found " + str(len(matches)) + " for " + key.dataset,
)
-2
View File
@@ -9,8 +9,6 @@
import os
from flask_api import status
from cellxgene_gateway import env
from cellxgene_gateway.cellxgene_exception import CellxgeneException
+3 -3
View File
@@ -10,7 +10,7 @@
import logging
import subprocess
from flask_api import status
from http import HTTPStatus
from cellxgene_gateway.cache_entry import CacheEntryStatus
from cellxgene_gateway.dir_util import make_annotations
@@ -76,10 +76,10 @@ class SubprocessBackend:
or "Could not open file" in stderr
):
message = "File was invalid."
http_status = status.HTTP_400_BAD_REQUEST
http_status = HTTPStatus.BAD_REQUEST
else:
message = "Cellxgene failed to launch dataset."
http_status = status.HTTP_500_INTERNAL_SERVER_ERROR
http_status = HTTPStatus.INTERNAL_SERVER_ERROR
cache_entry.status = CacheEntryStatus.error
cache_entry.set_error(message, stderr, http_status)