Skip to content

Commit a7366fa

Browse files
authored
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.
1 parent 9070365 commit a7366fa

File tree

3 files changed

+7
-13
lines changed

3 files changed

+7
-13
lines changed

gguf-py/gguf/scripts/__init__.py

Lines changed: 0 additions & 7 deletions
This file was deleted.

gguf-py/pyproject.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "gguf"
3-
version = "0.16.2"
3+
version = "0.16.3"
44
description = "Read and write ML models in GGUF for GGML"
55
authors = ["GGML <[email protected]>"]
66
packages = [
@@ -36,8 +36,8 @@ requires = ["poetry-core>=1.0.0"]
3636
build-backend = "poetry.core.masonry.api"
3737

3838
[tool.poetry.scripts]
39-
gguf-convert-endian = "gguf.scripts:gguf_convert_endian_entrypoint"
40-
gguf-dump = "gguf.scripts:gguf_dump_entrypoint"
41-
gguf-set-metadata = "gguf.scripts:gguf_set_metadata_entrypoint"
42-
gguf-new-metadata = "gguf.scripts:gguf_new_metadata_entrypoint"
43-
gguf-editor-gui = "gguf.scripts:gguf_editor_gui_entrypoint"
39+
gguf-convert-endian = "gguf.scripts.gguf_convert_endian:main"
40+
gguf-dump = "gguf.scripts.gguf_dump:main"
41+
gguf-set-metadata = "gguf.scripts.gguf_set_metadata:main"
42+
gguf-new-metadata = "gguf.scripts.gguf_new_metadata:main"
43+
gguf-editor-gui = "gguf.scripts.gguf_editor_gui:main"

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,6 @@ build-backend = "poetry.core.masonry.api"
4040

4141
[tool.poetry.scripts]
4242
llama-convert-hf-to-gguf = "convert_hf_to_gguf:main"
43+
llama-convert-lora-to-gguf = "convert_lora_to_gguf:main"
4344
llama-convert-llama-ggml-to-gguf = "convert_llama_ggml_to_gguf:main"
4445
llama-ggml-vk-generate-shaders = "ggml_vk_generate_shaders:main"

0 commit comments

Comments
 (0)