From 3226cd87b5b95c3c0160e9411e0ee68be585381e Mon Sep 17 00:00:00 2001 From: Frost Ming Date: Thu, 21 Nov 2024 10:28:24 +0800 Subject: [PATCH 1/3] fix: set standalone_build to False to allow build many times Signed-off-by: Frost Ming --- src/bentoml/_internal/bento/bento.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/bentoml/_internal/bento/bento.py b/src/bentoml/_internal/bento/bento.py index 30f28a9fc6e..82b88091550 100644 --- a/src/bentoml/_internal/bento/bento.py +++ b/src/bentoml/_internal/bento/bento.py @@ -260,12 +260,7 @@ def create( BentoMLContainer.model_aliases.set(build_config.model_aliases) # This also verifies that svc can be imported correctly - svc = import_service( - build_config.service, - working_dir=build_ctx, - reload=reload, - standalone_load=True, - ) + svc = import_service(build_config.service, working_dir=build_ctx, reload=reload) is_legacy = isinstance(svc, Service) # Apply default build options image: Image | None = None From 77ede3f7e79e3f695888204549b2de46228148e3 Mon Sep 17 00:00:00 2001 From: Frost Ming Date: Thu, 21 Nov 2024 13:00:46 +0800 Subject: [PATCH 2/3] fix: pin pydantic < 2.10 Signed-off-by: Frost Ming --- pdm.lock | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pdm.lock b/pdm.lock index 0c7f2e733cb..9a79d12c979 100644 --- a/pdm.lock +++ b/pdm.lock @@ -5,7 +5,7 @@ groups = ["default", "all", "aws", "docs", "grpc", "grpc-channelz", "grpc-reflection", "io", "io-image", "io-pandas", "monitor-otlp", "testing", "tooling", "tracing", "tracing-jaeger", "tracing-otlp", "tracing-zipkin"] strategy = ["inherit_metadata"] lock_version = "4.5.0" -content_hash = "sha256:506c71ed44098fe76039e45f26956970fe857731ea14ff6c5d52c63fdfe59e6b" +content_hash = "sha256:3b07478d62b644fab7060d77e50958eb9274815bdc8d0094a7ace7d02d558916" [[metadata.targets]] requires_python = ">=3.9" diff --git a/pyproject.toml b/pyproject.toml index 43beadff51a..5bb2ff46be9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,7 +53,7 @@ dependencies = [ "pip-requirements-parser>=31.2.0", "prometheus-client>=0.10.0", "psutil", - "pydantic<3", + "pydantic<2.10", "python-dateutil", "python-multipart", "python-json-logger", From 99c138429bc7a59b5e0efd42d61733cf06f040f5 Mon Sep 17 00:00:00 2001 From: Frost Ming Date: Thu, 21 Nov 2024 15:39:18 +0800 Subject: [PATCH 3/3] fix: deps Signed-off-by: Frost Ming --- tests/monitoring/task_classification/pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/monitoring/task_classification/pyproject.toml b/tests/monitoring/task_classification/pyproject.toml index 3e8939008b5..51f0f0829f4 100644 --- a/tests/monitoring/task_classification/pyproject.toml +++ b/tests/monitoring/task_classification/pyproject.toml @@ -4,6 +4,7 @@ dependencies = [ "scikit-learn", "pandas", "bentoml[monitor-otlp]>=1.0.19", + "pydantic<2.10", ] [dependency-groups]