-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from bento-platform/backwards-compatible-moder…
…nize Update CI action versions, dependencies, and service-info
- Loading branch information
Showing
12 changed files
with
1,092 additions
and
657 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
from bento_drop_box_service import __version__ | ||
|
||
__all__ = [ | ||
"BENTO_SERVICE_KIND", | ||
"SERVICE_NAME", | ||
"SERVICE_TYPE", | ||
] | ||
|
||
BENTO_SERVICE_KIND = "drop-box" | ||
SERVICE_NAME = "Bento Drop Box Service" | ||
SERVICE_TYPE = { | ||
"group": "ca.c3g.bento", | ||
"artifact": "drop-box", | ||
"artifact": BENTO_SERVICE_KIND, | ||
"version": __version__, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,10 @@ | |
quart_bad_request_error, | ||
quart_internal_server_error | ||
) | ||
from bento_lib.types import GA4GHServiceInfo | ||
from bento_drop_box_service import __version__ | ||
from bento_drop_box_service.backend import get_backend | ||
from bento_drop_box_service.constants import SERVICE_NAME, SERVICE_TYPE | ||
from bento_drop_box_service.constants import BENTO_SERVICE_KIND, SERVICE_NAME, SERVICE_TYPE | ||
|
||
|
||
drop_box_service = Blueprint("drop_box_service", __name__) | ||
|
@@ -48,16 +49,21 @@ async def drop_box_retrieve(path) -> Response: | |
@drop_box_service.route("/service-info", methods=["GET"]) | ||
async def service_info() -> Response: | ||
# Spec: https://github.com/ga4gh-discovery/ga4gh-service-info | ||
return jsonify({ | ||
# Do a little type checking | ||
info: GA4GHServiceInfo = { | ||
"id": current_app.config["SERVICE_ID"], | ||
"name": SERVICE_NAME, | ||
"type": SERVICE_TYPE, | ||
"description": "Drop box service for a Bento platform node.", | ||
"organization": { | ||
"name": "C3G", | ||
"url": "http://www.computationalgenomics.ca" | ||
"url": "https://www.computationalgenomics.ca" | ||
}, | ||
"contactUrl": "mailto:[email protected].ca", | ||
"contactUrl": "mailto:info@c3g.ca", | ||
"version": __version__, | ||
"env": "dev" if current_app.config["BENTO_DEBUG"] else "prod", | ||
}) | ||
"environment": "dev" if current_app.config["BENTO_DEBUG"] else "prod", | ||
"bento": { | ||
"serviceKind": BENTO_SERVICE_KIND, | ||
}, | ||
} | ||
return jsonify(info) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,12 +4,12 @@ build-backend = "poetry.core.masonry.api" | |
|
||
[tool.poetry] | ||
name = "bento_drop_box_service" | ||
version = "0.6.0" | ||
version = "0.7.0" | ||
description = "Drop box and basic file management service for the Bento platform." | ||
authors = ["David Lougheed <[email protected]>", "Simon Chénard <[email protected]>"] | ||
readme = "README.md" | ||
packages = [{include = "bento_drop_box_service"}] | ||
repository = "https://github.com/bento-platform/bento_service_registry" | ||
repository = "https://github.com/bento-platform/bento_drop_box_service" | ||
license = "LGPL-3.0-only" | ||
classifiers = [ | ||
"Programming Language :: Python :: 3", | ||
|
@@ -21,16 +21,16 @@ classifiers = [ | |
python = "^3.8" | ||
boto3 = "^1.26.4" | ||
quart = "^0.18.3" | ||
bento-lib = {extras = ["quart"], version = "^4.1.0"} | ||
bento-lib = {extras = ["quart"], version = "^5.2.0"} | ||
aiofiles = "^22.1.0" | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
tox = "^3.27.0" | ||
tox = "^4.2.8" | ||
codecov = "^2.1.12" | ||
coverage = "^6.5.0" | ||
pytest = "^7.2.0" | ||
pytest-cov = "^4.0.0" | ||
moto = "^4.0.9" | ||
flake8 = "^5.0.4" | ||
pytest-asyncio = "^0.20.1" | ||
|
||
debugpy = "^1.6.5" |