Skip to content

Commit 7aef532

Browse files
committed
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 74090f8 commit 7aef532

File tree

3 files changed

+6
-16
lines changed

3 files changed

+6
-16
lines changed

gguf-py/gguf/scripts/__init__.py

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

gguf-py/pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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)