mirror of
https://github.com/bentoml/OpenLLM.git
synced 2026-01-15 19:07:46 -05:00
fix(yapf): align weird new lines break Signed-off-by: aarnphm-ec2-dev <29749331+aarnphm@users.noreply.github.com>
34 lines
1.4 KiB
Python
34 lines
1.4 KiB
Python
"""Build-related utilities. Some of these utilities are mainly used for 'openllm.build'.
|
|
|
|
These utilities will stay internal, and its API can be changed or updated without backward-compatibility.
|
|
"""
|
|
from __future__ import annotations
|
|
import os
|
|
import typing as t
|
|
|
|
from openllm_core.utils import LazyModule
|
|
|
|
_import_structure: dict[str, list[str]] = {
|
|
'_package': ['create_bento', 'build_editable', 'construct_python_options', 'construct_docker_options'],
|
|
'oci': ['CONTAINER_NAMES', 'get_base_container_tag', 'build_container', 'get_base_container_name', 'supported_registries', 'RefResolver']
|
|
}
|
|
|
|
if t.TYPE_CHECKING:
|
|
from . import _package as _package
|
|
from . import oci as oci
|
|
from ._package import build_editable as build_editable
|
|
from ._package import construct_docker_options as construct_docker_options
|
|
from ._package import construct_python_options as construct_python_options
|
|
from ._package import create_bento as create_bento
|
|
from .oci import CONTAINER_NAMES as CONTAINER_NAMES
|
|
from .oci import RefResolver as RefResolver
|
|
from .oci import build_container as build_container
|
|
from .oci import get_base_container_name as get_base_container_name
|
|
from .oci import get_base_container_tag as get_base_container_tag
|
|
from .oci import supported_registries as supported_registries
|
|
|
|
__lazy = LazyModule(__name__, os.path.abspath('__file__'), _import_structure)
|
|
__all__ = __lazy.__all__
|
|
__dir__ = __lazy.__dir__
|
|
__getattr__ = __lazy.__getattr__
|