Closed marcindulak closed 2 years ago
Thank you for the feedback @marcindulak - this issue should be fixed now in BentoML version 1.0, where user can specify arbitrary files to be included in the Bento, via a bentofile.yaml
file. Here's an example build file:
service: "iris_classifier:svc"
description: "file: ./readme.md"
labels:
foo: bar
team: abc
include:
- "*.py"
- "*.json"
exclude:
- "*.pyc"
See 1.0 documentation to learn more: https://docs.bentoml.org/en/latest/
Describe the bug
The
__init__.py
file is empty and_version.py
file missing in the service repository. The behavior depends on the location of the service exportexport_service.py
script.To Reproduce
Steps to reproduce the issue:
__init__.py
and_version.py
are missing:Expected behavior
The
__init__.py
and_version.py
are created:This is the case when
export_service.py
resides in the./bentoml-missing-version-import
directory.Screenshots/Logs
Environment:
Additional context
The issue looks related to other issues listed in https://github.com/bentoml/BentoML/issues/1621#issuecomment-840513959