mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2025-06-27 03:55:20 +00:00
gguf-py : avoid requiring pyside6 for other scripts (#13036)
- gguf-py : remove gguf-py/gguf/scripts/__init__.py because it's not needed Implicit namespaces are supported since Python 3.3 (https://peps.python.org/pep-0420/), and the entrypoints in pyproject.toml can directly refer to the main functions.
This commit is contained in:
@ -1,7 +0,0 @@
|
|||||||
# pyright: reportUnusedImport=false
|
|
||||||
|
|
||||||
from .gguf_convert_endian import main as gguf_convert_endian_entrypoint
|
|
||||||
from .gguf_dump import main as gguf_dump_entrypoint
|
|
||||||
from .gguf_set_metadata import main as gguf_set_metadata_entrypoint
|
|
||||||
from .gguf_new_metadata import main as gguf_new_metadata_entrypoint
|
|
||||||
from .gguf_editor_gui import main as gguf_editor_gui_entrypoint
|
|
@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "gguf"
|
name = "gguf"
|
||||||
version = "0.16.2"
|
version = "0.16.3"
|
||||||
description = "Read and write ML models in GGUF for GGML"
|
description = "Read and write ML models in GGUF for GGML"
|
||||||
authors = ["GGML <ggml@ggml.ai>"]
|
authors = ["GGML <ggml@ggml.ai>"]
|
||||||
packages = [
|
packages = [
|
||||||
@ -36,8 +36,8 @@ requires = ["poetry-core>=1.0.0"]
|
|||||||
build-backend = "poetry.core.masonry.api"
|
build-backend = "poetry.core.masonry.api"
|
||||||
|
|
||||||
[tool.poetry.scripts]
|
[tool.poetry.scripts]
|
||||||
gguf-convert-endian = "gguf.scripts:gguf_convert_endian_entrypoint"
|
gguf-convert-endian = "gguf.scripts.gguf_convert_endian:main"
|
||||||
gguf-dump = "gguf.scripts:gguf_dump_entrypoint"
|
gguf-dump = "gguf.scripts.gguf_dump:main"
|
||||||
gguf-set-metadata = "gguf.scripts:gguf_set_metadata_entrypoint"
|
gguf-set-metadata = "gguf.scripts.gguf_set_metadata:main"
|
||||||
gguf-new-metadata = "gguf.scripts:gguf_new_metadata_entrypoint"
|
gguf-new-metadata = "gguf.scripts.gguf_new_metadata:main"
|
||||||
gguf-editor-gui = "gguf.scripts:gguf_editor_gui_entrypoint"
|
gguf-editor-gui = "gguf.scripts.gguf_editor_gui:main"
|
||||||
|
@ -40,5 +40,6 @@ build-backend = "poetry.core.masonry.api"
|
|||||||
|
|
||||||
[tool.poetry.scripts]
|
[tool.poetry.scripts]
|
||||||
llama-convert-hf-to-gguf = "convert_hf_to_gguf:main"
|
llama-convert-hf-to-gguf = "convert_hf_to_gguf:main"
|
||||||
|
llama-convert-lora-to-gguf = "convert_lora_to_gguf:main"
|
||||||
llama-convert-llama-ggml-to-gguf = "convert_llama_ggml_to_gguf:main"
|
llama-convert-llama-ggml-to-gguf = "convert_llama_ggml_to_gguf:main"
|
||||||
llama-ggml-vk-generate-shaders = "ggml_vk_generate_shaders:main"
|
llama-ggml-vk-generate-shaders = "ggml_vk_generate_shaders:main"
|
||||||
|
Reference in New Issue
Block a user