[metadata.hooks.fancy-pypi-readme] content-type = "text/markdown" # PyPI doesn't support the tag. [[metadata.hooks.fancy-pypi-readme.fragments]] text = """

Banner for OpenLLM

""" [[metadata.hooks.fancy-pypi-readme.fragments]] end-before = "\n\n" path = "README.md" start-after = "\n" [[metadata.hooks.fancy-pypi-readme.fragments]] text = """

Gif showing OpenLLM Intro

""" [[metadata.hooks.fancy-pypi-readme.fragments]] end-before = "\n\n" path = "README.md" start-after = "\n" [[metadata.hooks.fancy-pypi-readme.fragments]] text = """

Gif showing Agent integration

""" [[metadata.hooks.fancy-pypi-readme.fragments]] end-before = "\n" path = "README.md" start-after = "\n" [[metadata.hooks.fancy-pypi-readme.fragments]] text = """ ## Release Information """ [[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] path = "CHANGELOG.md" pattern = "\n(###.+?\n)## " [[metadata.hooks.fancy-pypi-readme.fragments]] text = """ --- [Click me for full changelog](https://github.com/bentoml/openllm/blob/main/CHANGELOG.md) """ [version] fallback-version = "0.0.0" source = "vcs" [build.hooks.vcs] version-file = "src/openllm/_version.py" [version.raw-options] git_describe_command = ["git", "describe", "--dirty", "--tags", "--long", "--first-parent"] local_scheme = "no-local-version" [metadata] allow-direct-references = true [build.targets.wheel] packages = ["src/openllm", "src/openllm_client"] [build.targets.sdist] exclude = ["/.github", "/typings", "/examples", "/assets", "/changelog.d", "/tools", ".git"] [envs.default] dependencies = [ # NOTE: To run all hooks "pre-commit", # NOTE: towncrier for changelog "towncrier", # NOTE: Using under ./tools/update-optional-dependencies.py "tomlkit", # NOTE: Using under ./tools/update-readme.py "markdown-it-py", # NOTE: For fancy PyPI readme "hatch-fancy-pypi-readme", # The below sync with mypyc deps and pre-commit mypy "types-psutil", "types-tabulate", "types-PyYAML", "types-protobuf", ] [envs.default.scripts] changelog = "towncrier build --version main --draft" inplace-changelog = "towncrier build --version main --keep" quality = [ "./tools/dependencies.py", "./tools/update-readme.py", "./tools/update-config-stubs.py", "./tools/update-models-import.py", "- ./tools/add-license-headers .", "pre-commit run --all-files", ] setup = "pre-commit install" typing = ["- pre-commit run mypy {args:-a}", "- pre-commit run pyright {args:-a}"] [envs.tests] dependencies = [ # NOTE: interact with docker for container tests. "docker", # NOTE: Tests strategies with Hypothesis and pytest, and snapshot testing with syrupy "coverage[toml]>=6.5", "filelock>=3.7.1", "pytest", "pytest-cov", "pytest-mock", "pytest-randomly", "pytest-rerunfailures", "pytest-asyncio>=0.21.0", "pytest-xdist[psutil]", "trustme", "hypothesis", "syrupy", ] features = ['flan-t5', 'baichuan'] skip-install = false template = 'tests' [envs.tests.scripts] _run_script = "pytest --cov --cov-report={env:COVERAGE_REPORT:term-missing} --cov-config=pyproject.toml -vv" distributed = "_run_script --reruns 5 --reruns-delay 3 --ignore tests/models -n 3 -r aR {args:tests}" models = "_run_script -s {args:tests/models}" python = "_run_script --reruns 5 --reruns-delay 3 --ignore tests/models -r aR {args:tests}" snapshot-models = "_run_script -s --snapshot-update {args:tests/models}" [envs.tests.overrides] env.GITHUB_ACTIONS.env-vars = "COVERAGE_REPORT=" [envs.coverage] dependencies = ["coverage[toml]>=6.5", "lxml", "orjson"] detached = true [envs.coverage.scripts] combine = "coverage combine {args}" generate-summary = "python tools/generate-coverage.py" report-uncovered-html = "coverage html --skip-covered --skip-empty" report-xml = "coverage xml" write-summary-report = "python tools/write-coverage-report.py" [build.targets.wheel.hooks.mypyc] dependencies = [ "hatch-mypyc>=0.14.1", "click>=8.1.6", "peft", "git+https://github.com/bentoml/BentoML.git@main", "git+https://github.com/huggingface/transformers.git@main", "types-psutil", "types-tabulate", "types-PyYAML", "types-protobuf", ] enable-by-default = false mypy-args = ["--no-warn-unused-ignores"] require-runtime-dependencies = true require-runtime-features = ["agents", "chatglm", "opt"]