Skip to content

Commit eb15e32

Browse files
authored
fix: pin pydantic to < 2.10 and restore cwd when building bento (#5093)
* fix: set standalone_build to False to allow build many times Signed-off-by: Frost Ming <me@frostming.com> * fix: pin pydantic < 2.10 Signed-off-by: Frost Ming <me@frostming.com> * fix: deps Signed-off-by: Frost Ming <me@frostming.com> --------- Signed-off-by: Frost Ming <me@frostming.com>
1 parent 9cfcf72 commit eb15e32

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

pdm.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ dependencies = [
5353
"pip-requirements-parser>=31.2.0",
5454
"prometheus-client>=0.10.0",
5555
"psutil",
56-
"pydantic<3",
56+
"pydantic<2.10",
5757
"python-dateutil",
5858
"python-multipart",
5959
"python-json-logger",

src/bentoml/_internal/bento/bento.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -260,12 +260,7 @@ def create(
260260

261261
BentoMLContainer.model_aliases.set(build_config.model_aliases)
262262
# This also verifies that svc can be imported correctly
263-
svc = import_service(
264-
build_config.service,
265-
working_dir=build_ctx,
266-
reload=reload,
267-
standalone_load=True,
268-
)
263+
svc = import_service(build_config.service, working_dir=build_ctx, reload=reload)
269264
is_legacy = isinstance(svc, Service)
270265
# Apply default build options
271266
image: Image | None = None

tests/monitoring/task_classification/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ dependencies = [
44
"scikit-learn",
55
"pandas",
66
"bentoml[monitor-otlp]>=1.0.19",
7+
"pydantic<2.10",
78
]
89

910
[dependency-groups]

0 commit comments

Comments
 (0)