From 2e44acb5d0c1d65a0ce24076e023e66f73ba4bc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D1=80=D1=82=D1=8B=D0=BD=D0=BE=D0=B2=20=D0=9C?= =?UTF-8?q?=D0=B0=D0=BA=D1=81=D0=B8=D0=BC=20=D0=A1=D0=B5=D1=80=D0=B3=D0=B5?= =?UTF-8?q?=D0=B5=D0=B2=D0=B8=D1=87?= Date: Mon, 15 Apr 2024 17:59:23 +0300 Subject: [PATCH 1/3] [DOP-15023] Bump version --- docs/conf.py | 2 +- pyproject.toml | 3 ++- syncmaster/__init__.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index d300407d..fc19a551 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -36,7 +36,7 @@ # The short X.Y version. # this value is updated automatically by `poetry version ...` and poetry-bumpversion plugin -ver = Version.parse("0.1.3") +ver = Version.parse("0.1.4") version = ver.base_version # The full version, including alpha/beta/rc tags. release = ver.public diff --git a/pyproject.toml b/pyproject.toml index 0ae08339..245180cf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "data-syncmaster" -version = "0.1.3" +version = "0.1.4" license = "Apache-2.0" description = "Syncmaster REST API + Worker" authors = ["DataOps.ETL "] @@ -200,6 +200,7 @@ exclude_lines = [ + [tool.poetry.group.docs.dependencies] autodoc-pydantic = {version = "^2.0.1", python = ">=3.8"} numpydoc = {version = "^1.6.0", python = ">=3.8"} diff --git a/syncmaster/__init__.py b/syncmaster/__init__.py index 8a7580c3..6a8b0526 100644 --- a/syncmaster/__init__.py +++ b/syncmaster/__init__.py @@ -1,6 +1,6 @@ # SPDX-FileCopyrightText: 2023-2024 MTS (Mobile Telesystems) # SPDX-License-Identifier: Apache-2.0 -_raw_version = "0.1.3" +_raw_version = "0.1.4" # version always contain only release number like 0.0.1 __version__ = ".".join(_raw_version.split(".")[:3]) # noqa: WPS410 From 04ae3ffe4b17d1ce90f59695c5eba5de6c5e7d67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D1=80=D1=82=D1=8B=D0=BD=D0=BE=D0=B2=20=D0=9C?= =?UTF-8?q?=D0=B0=D0=BA=D1=81=D0=B8=D0=BC=20=D0=A1=D0=B5=D1=80=D0=B3=D0=B5?= =?UTF-8?q?=D0=B5=D0=B2=D0=B8=D1=87?= Date: Mon, 15 Apr 2024 18:14:55 +0300 Subject: [PATCH 2/3] [DOP-15023] Fix missing backend factory --- docs/changelog/0.1.4.rst | 7 +++++++ docs/changelog/index.rst | 1 + syncmaster/backend/__init__.py | 4 ++++ 3 files changed, 12 insertions(+) create mode 100644 docs/changelog/0.1.4.rst diff --git a/docs/changelog/0.1.4.rst b/docs/changelog/0.1.4.rst new file mode 100644 index 00000000..9992ca71 --- /dev/null +++ b/docs/changelog/0.1.4.rst @@ -0,0 +1,7 @@ +0.1.4 (2024-04-15) +================== + +Bug Fixes +---------- + +Fix missing backend factory. diff --git a/docs/changelog/index.rst b/docs/changelog/index.rst index 47cc6f2d..a678f9fa 100644 --- a/docs/changelog/index.rst +++ b/docs/changelog/index.rst @@ -3,6 +3,7 @@ :caption: Changelog DRAFT + 0.1.4 0.1.3 0.1.2 0.1.1 diff --git a/syncmaster/backend/__init__.py b/syncmaster/backend/__init__.py index a3081aa3..4836c752 100644 --- a/syncmaster/backend/__init__.py +++ b/syncmaster/backend/__init__.py @@ -54,3 +54,7 @@ def application_factory(settings: Settings) -> FastAPI: ) return application + + +def get_application() -> FastAPI: + return application_factory(settings=Settings()) From bddd57f178110c2bc5c345f73f3ea189ccbe7c5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D1=80=D1=82=D1=8B=D0=BD=D0=BE=D0=B2=20=D0=9C?= =?UTF-8?q?=D0=B0=D0=BA=D1=81=D0=B8=D0=BC=20=D0=A1=D0=B5=D1=80=D0=B3=D0=B5?= =?UTF-8?q?=D0=B5=D0=B2=D0=B8=D1=87?= Date: Mon, 15 Apr 2024 18:30:13 +0300 Subject: [PATCH 3/3] [DOP-15023] Fix missing kinit executable in worker image --- docker/Dockerfile.worker | 1 + docs/changelog/0.1.4.rst | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile.worker b/docker/Dockerfile.worker index 2afbb450..da880759 100644 --- a/docker/Dockerfile.worker +++ b/docker/Dockerfile.worker @@ -2,6 +2,7 @@ ARG BASE_IMAGE=python:3.11-slim FROM $BASE_IMAGE AS prod RUN apt-get update && apt-get install -y \ + krb5-user \ libkrb5-dev \ libsasl2-dev \ libsasl2-modules-gssapi-mit \ diff --git a/docs/changelog/0.1.4.rst b/docs/changelog/0.1.4.rst index 9992ca71..6c3e528b 100644 --- a/docs/changelog/0.1.4.rst +++ b/docs/changelog/0.1.4.rst @@ -4,4 +4,5 @@ Bug Fixes ---------- -Fix missing backend factory. +- Fix missing backend factory for uvicorn. +- Fix missing ``kinit`` executable in worker image.