mirror of
https://github.com/Novartis/cellxgene-gateway.git
synced 2026-10-10 02:40:56 +08:00
#87 remove version pins for markupsafe, flask and werkzeug
also remove dependency on flask-api
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
|
||||
@@ -9,8 +9,6 @@
|
||||
|
||||
import os
|
||||
|
||||
from flask_api import status
|
||||
|
||||
from cellxgene_gateway import env
|
||||
from cellxgene_gateway.cellxgene_exception import CellxgeneException
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user