fix(ci): remove broken build hooks (#216)

This commit is contained in:
Aaron Pham
2023-08-16 04:49:12 -04:00
committed by GitHub
parent af8cb73832
commit ccca49af04
7 changed files with 11 additions and 24 deletions

View File

@@ -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

View File

@@ -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
```

View File

@@ -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 = [

View File

@@ -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']}"]

View File

@@ -0,0 +1 @@
../.python-version-default

View File

@@ -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",

View File

@@ -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 = [