Skip to content

Commit 2f0b490

Browse files
committed
dependency bump
1 parent 09220e5 commit 2f0b490

File tree

5 files changed

+8
-11
lines changed

5 files changed

+8
-11
lines changed

.helm/Chart.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.0.23
18+
version: 0.0.24
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to
2222
# follow Semantic Versioning. They should reflect the version the application is using.
2323
# It is recommended to use it with quotes.
24-
appVersion: "0.0.23"
24+
appVersion: "0.0.24"

.helm/templates/backend-deployment.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ metadata:
66
{{- include "annotator-backend.labels" . | nindent 4 }}
77
spec:
88
{{- if not .Values.autoscaling.enabled }}
9-
replicas: {{ .Values.replicaCount }}
109
{{- end }}
1110
selector:
1211
matchLabels:

.helm/values.yaml

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
# This is a YAML-formatted file.
33
# Declare variables to be passed into your templates.
44

5-
replicaCount: 1
6-
75
postgresql:
86
database: "image-annotations"
97
username: ""

setup.cfg

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
[metadata]
66
name = dataset-image-annotator
7-
version = 0.0.23
7+
version = 0.0.24
88
description = Image annotation tool
99
author = Oleg Korsak
1010
author_email = [email protected]
@@ -32,7 +32,7 @@ package_dir =
3232
setup_requires = pyscaffold>=3.2a0,<3.3a0
3333
# Add here dependencies of your project (semicolon/line-separated), e.g.
3434
install_requires =
35-
rawpy==0.17.3
35+
rawpy==0.18.0
3636
Pillow==9.4.0
3737
pydantic==1.10.4
3838
tzdata==2022.7
@@ -54,12 +54,12 @@ exclude =
5454
desktop =
5555
PySide6-Essentials==6.4.2
5656
web =
57-
alembic==1.9.2
57+
alembic==1.9.3
5858
asyncpg==0.27.0
5959
Authlib==1.2.0
6060
passlib==1.7.4
6161
databases[postgresql]==0.7.0
62-
fastapi==0.89.1
62+
fastapi==0.90.0
6363
fastapi-pagination==0.11.3
6464
fastapi-users[sqlalchemy]==10.3.0
6565
numpy==1.24.1

src/dataset_image_annotator/api/v1/endpoints.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from fastapi_users import FastAPIUsers
1111
from fastapi_users.authentication import AuthenticationBackend, JWTStrategy, CookieTransport
1212
from pydantic import Json
13+
from python3_commons.db import connect_to_db
1314

1415
from dataset_image_annotator import core
1516
from dataset_image_annotator.api import users
@@ -21,7 +22,6 @@
2122
from dataset_image_annotator.core import upload_handler
2223
from dataset_image_annotator.db import database
2324
from dataset_image_annotator.db.models import User
24-
from dataset_image_annotator.helpers import connect_to_db
2525

2626
logger = logging.getLogger(__name__)
2727
router = APIRouter()
@@ -46,7 +46,7 @@ def get_jwt_strategy() -> JWTStrategy:
4646

4747
@router.on_event('startup')
4848
async def startup():
49-
await connect_to_db(database)
49+
await connect_to_db(database, settings.db_dsn)
5050

5151

5252
@router.on_event('shutdown')

0 commit comments

Comments
 (0)