Skip to content

Commit

Permalink
chore: move from_sample deps to optional via io-file
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Pham <29749331+aarnphm@users.noreply.github.com>
  • Loading branch information
aarnphm committed Nov 7, 2022
1 parent 84152a8 commit 26993e1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
12 changes: 8 additions & 4 deletions pyproject.toml
Expand Up @@ -45,7 +45,6 @@ dependencies = [
"opentelemetry-sdk==1.13.0",
"opentelemetry-semantic-conventions==0.34b0",
"opentelemetry-util-http==0.34b0",
"filetype",
"packaging>=20.0",
"pathspec",
"pip-tools>=6.6.2",
Expand Down Expand Up @@ -113,15 +112,20 @@ include = [
[project.optional-dependencies]
all = [
"bentoml[aws]",
"bentoml[io-json]",
"bentoml[io-image]",
"bentoml[io-pandas]",
"bentoml[io]",
"bentoml[grpc]",
"bentoml[grpc-reflection]",
"bentoml[grpc-channelz]",
"bentoml[tracing]",
]
aws = ["fs-s3fs"]
io = [
"bentoml[io-json]",
"bentoml[io-image]",
"bentoml[io-pandas]",
"bentoml[io-file]",
] # syntatic sugar for bentoml[io-json,io-image,io-pandas,io-file]
io-file = ["filetype"] # Currently use for from_sample
io-json = ["pydantic<2"] # currently we don't have support for pydantic 2.0
io-image = ["Pillow"]
io-pandas = ["pandas", "pyarrow"]
Expand Down
1 change: 1 addition & 0 deletions src/bentoml/_internal/io_descriptors/base.py
Expand Up @@ -20,6 +20,7 @@
from ..context import InferenceApiContext as Context
from ..service.openapi.specification import Schema
from ..service.openapi.specification import Reference
from ..service.openapi.specification import MediaType

InputType = (
UnionType
Expand Down
2 changes: 2 additions & 0 deletions src/bentoml/bentos.py
Expand Up @@ -445,6 +445,8 @@ def construct_dockerfile(
"grpc-channelz",
"aws",
"all",
"io",
"io-file",
"io-image",
"io-pandas",
"io-json",
Expand Down

0 comments on commit 26993e1

Please sign in to comment.