Skip to content

Commit

Permalink
chore: update dependencies (+ small new bento lib usage tweaks)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed May 24, 2024
1 parent 5fe7867 commit 9bec5c2
Show file tree
Hide file tree
Showing 4 changed files with 1,097 additions and 411 deletions.
6 changes: 4 additions & 2 deletions bento_aggregation_service/config.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
from bento_lib.config.pydantic import BentoBaseConfig
from bento_lib.service_info.constants import SERVICE_ORGANIZATION_C3G
from fastapi import Depends
from functools import lru_cache
from typing import Annotated

from .constants import SERVICE_NAME, SERVICE_TYPE
from .constants import SERVICE_TYPE

__all__ = [
"Config",
Expand All @@ -14,7 +15,8 @@

class Config(BentoBaseConfig):
service_id: str = str(":".join(list(SERVICE_TYPE.values())[:2]))
service_name: str = SERVICE_NAME
service_name: str = "Bento Aggregation Service"
service_organization = SERVICE_ORGANIZATION_C3G

request_timeout: int = 180 # seconds

Expand Down
13 changes: 2 additions & 11 deletions bento_aggregation_service/constants.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,13 @@
from __future__ import annotations

from bento_lib.service_info.helpers import build_bento_service_type
from . import __version__


__all__ = [
"BENTO_SERVICE_KIND",
"SERVICE_ORGANIZATION",
"SERVICE_ARTIFACT",
"SERVICE_TYPE",
"SERVICE_NAME",
]

BENTO_SERVICE_KIND = "aggregation"
SERVICE_ORGANIZATION = "ca.c3g.bento"
SERVICE_ARTIFACT = BENTO_SERVICE_KIND
SERVICE_TYPE = {
"group": "ca.c3g.bento",
"artifact": SERVICE_ARTIFACT,
"version": __version__,
}
SERVICE_NAME = "Bento Aggregation Service"
SERVICE_TYPE = build_bento_service_type(BENTO_SERVICE_KIND, __version__)
Loading

0 comments on commit 9bec5c2

Please sign in to comment.