mirror of
https://github.com/bentoml/OpenLLM.git
synced 2026-04-21 15:39:36 -04:00
fix(ci): remove broken build hooks (#216)
This commit is contained in:
3
.github/workflows/compile-pypi.yml
vendored
3
.github/workflows/compile-pypi.yml
vendored
@@ -133,8 +133,7 @@ jobs:
|
||||
run: ls -rthlaR
|
||||
push-nightly:
|
||||
name: Push nightly wheels
|
||||
if: >-
|
||||
!github.event.repository.fork && (github.event_name == 'push' && startsWith(github.ref, 'refs/main'))
|
||||
if: ${{ !github.event.repository.fork && github.event_name == 'push' }}
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
id-token: write
|
||||
|
||||
@@ -10,9 +10,9 @@
|
||||
<br/>
|
||||
|
||||
## Installation
|
||||
|
||||
|
||||
The recommended way to run this UI is via the docker container:
|
||||
|
||||
|
||||
```bash
|
||||
docker run --rm -p 8420:80 ghcr.io/bentoml/openllm-ui-clojure:0.2.25
|
||||
```
|
||||
|
||||
@@ -19,9 +19,6 @@ dependencies = [
|
||||
"types-PyYAML",
|
||||
"types-protobuf",
|
||||
]
|
||||
pre-install-commands = [
|
||||
"pip install -e ./openllm-python", #
|
||||
]
|
||||
[envs.default.scripts]
|
||||
changelog = "towncrier build --version main --draft"
|
||||
check-stubs = [
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
from __future__ import annotations
|
||||
import os, typing as t
|
||||
from hatchling.metadata.plugin.interface import MetadataHookInterface
|
||||
|
||||
class CustomMetadataHook(MetadataHookInterface):
|
||||
def update(self, metadata: dict[str, t.Any]) -> None:
|
||||
if os.environ.get("HATCH_ENV_ACTIVE", "not-dev") != "dev": metadata["dependencies"] = [f"openllm[opt,chatglm,fine-tune]=={metadata['version']}"]
|
||||
1
openllm-python/.python-version-default
Symbolic link
1
openllm-python/.python-version-default
Symbolic link
@@ -0,0 +1 @@
|
||||
../.python-version-default
|
||||
@@ -156,7 +156,12 @@ allow-direct-references = true
|
||||
only-include = ["src/openllm"]
|
||||
sources = ["src"]
|
||||
[tool.hatch.build.targets.sdist]
|
||||
exclude = ["/.git_archival.txt", "tests"]
|
||||
exclude = [
|
||||
"/.git_archival.txt",
|
||||
"tests",
|
||||
"/.python-version-default",
|
||||
"ADDING_NEW_MODEL.md",
|
||||
]
|
||||
[tool.hatch.build.targets.wheel.hooks.mypyc]
|
||||
dependencies = [
|
||||
"hatch-mypyc==0.16.0",
|
||||
|
||||
@@ -69,14 +69,6 @@ History = "https://github.com/bentoml/OpenLLM/blob/main/CHANGELOG.md"
|
||||
Homepage = "https://bentoml.com"
|
||||
Tracker = "https://github.com/bentoml/OpenLLM/issues"
|
||||
Twitter = "https://twitter.com/bentomlai"
|
||||
|
||||
[tool.hatch.build]
|
||||
exclude = ["*"]
|
||||
dev-mode-dirs = ["openllm-python"]
|
||||
[tool.hatch.build.sources]
|
||||
"openllm-python/src/openllm" = "openllm"
|
||||
[tool.hatch.metadata.hooks.custom]
|
||||
|
||||
[tool.hatch.version]
|
||||
fallback-version = "0.0.0"
|
||||
source = "vcs"
|
||||
@@ -309,7 +301,7 @@ python_files = ["test_*.py", "*_test.py"]
|
||||
testpaths = ["openllm-python/tests"]
|
||||
|
||||
[tool.coverage.paths]
|
||||
openllm = ["src/openllm", "*/openllm/src/openllm"]
|
||||
openllm = ["openllm-python/src/openllm", "*/openllm-python/src/openllm"]
|
||||
[tool.coverage.run]
|
||||
branch = true
|
||||
omit = [
|
||||
|
||||
Reference in New Issue
Block a user