pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

py-gguf: Import py-gguf-0.17.1.6959 as wip/py-gguf



Module Name:	pkgsrc-wip
Committed By:	Atsushi Toyokura <asteria.at%gmail.com@localhost>
Pushed By:	steleto
Date:		Sat Nov 15 17:46:55 2025 +0900
Changeset:	f156f0f1815a4b6f2e99c79a3b767b43fd0824a8

Added Files:
	py-gguf/DESCR
	py-gguf/Makefile
	py-gguf/PLIST
	py-gguf/distinfo

Log Message:
py-gguf: Import py-gguf-0.17.1.6959 as wip/py-gguf

This is a Python package for writing binary files in the 'GGUF' (GGML
Universal File) format.

See 'convert_hf_to_gguf.py' as an example for its usage.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=f156f0f1815a4b6f2e99c79a3b767b43fd0824a8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 py-gguf/DESCR    |  4 ++++
 py-gguf/Makefile | 27 ++++++++++++++++++++++++
 py-gguf/PLIST    | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 py-gguf/distinfo |  5 +++++
 4 files changed, 99 insertions(+)

diffs:
diff --git a/py-gguf/DESCR b/py-gguf/DESCR
new file mode 100644
index 0000000000..c230083d1c
--- /dev/null
+++ b/py-gguf/DESCR
@@ -0,0 +1,4 @@
+This is a Python package for writing binary files in the 'GGUF' (GGML
+Universal File) format.
+
+See 'convert_hf_to_gguf.py' as an example for its usage.
diff --git a/py-gguf/Makefile b/py-gguf/Makefile
new file mode 100644
index 0000000000..43c0f80c9b
--- /dev/null
+++ b/py-gguf/Makefile
@@ -0,0 +1,27 @@
+# $NetBSD$
+
+DISTNAME=	llama.cpp-${GITHUB_TAG}
+PKGNAME=	${PYPKGPREFIX}-gguf-${GITHUB_TAG:S/b/${GGUF_VER}./}
+CATEGORIES=	devel
+MASTER_SITES=	${MASTER_SITE_GITHUB:=ggml-org/}
+GITHUB_TAG=	b6959
+GGUF_VER=	0.17.1
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://pypi.org/project/gguf/
+COMMENT=	Read and write ML models in GGUF for GGML
+LICENSE=	mit
+
+DEPENDS+=	${PYPKGPREFIX}-poetry-core>=1.0.0:../../devel/py-poetry-core
+
+USE_LANGUAGES=	# none
+
+WRKSRC=		${WRKDIR}/${DISTNAME}
+PYSETUPSUBDIR=	gguf-py
+
+PRINT_PLIST_AWK+=	{gsub(/${GGUF_VER}/, "$${GGUF_VER}");}
+
+PLIST_SUBST+=	GGUF_VER=${GGUF_VER:Q}
+
+.include "../../lang/python/wheel.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/py-gguf/PLIST b/py-gguf/PLIST
new file mode 100644
index 0000000000..215cc684f3
--- /dev/null
+++ b/py-gguf/PLIST
@@ -0,0 +1,63 @@
+@comment $NetBSD$
+bin/gguf-convert-endian
+bin/gguf-dump
+bin/gguf-editor-gui
+bin/gguf-new-metadata
+bin/gguf-set-metadata
+${PYSITELIB}/gguf-${GGUF_VER}.dist-info/METADATA
+${PYSITELIB}/gguf-${GGUF_VER}.dist-info/RECORD
+${PYSITELIB}/gguf-${GGUF_VER}.dist-info/WHEEL
+${PYSITELIB}/gguf-${GGUF_VER}.dist-info/entry_points.txt
+${PYSITELIB}/gguf-${GGUF_VER}.dist-info/licenses/LICENSE
+${PYSITELIB}/gguf/__init__.py
+${PYSITELIB}/gguf/__init__.pyc
+${PYSITELIB}/gguf/__init__.pyo
+${PYSITELIB}/gguf/constants.py
+${PYSITELIB}/gguf/constants.pyc
+${PYSITELIB}/gguf/constants.pyo
+${PYSITELIB}/gguf/gguf.py
+${PYSITELIB}/gguf/gguf.pyc
+${PYSITELIB}/gguf/gguf.pyo
+${PYSITELIB}/gguf/gguf_reader.py
+${PYSITELIB}/gguf/gguf_reader.pyc
+${PYSITELIB}/gguf/gguf_reader.pyo
+${PYSITELIB}/gguf/gguf_writer.py
+${PYSITELIB}/gguf/gguf_writer.pyc
+${PYSITELIB}/gguf/gguf_writer.pyo
+${PYSITELIB}/gguf/lazy.py
+${PYSITELIB}/gguf/lazy.pyc
+${PYSITELIB}/gguf/lazy.pyo
+${PYSITELIB}/gguf/metadata.py
+${PYSITELIB}/gguf/metadata.pyc
+${PYSITELIB}/gguf/metadata.pyo
+${PYSITELIB}/gguf/py.typed
+${PYSITELIB}/gguf/quants.py
+${PYSITELIB}/gguf/quants.pyc
+${PYSITELIB}/gguf/quants.pyo
+${PYSITELIB}/gguf/scripts/gguf_convert_endian.py
+${PYSITELIB}/gguf/scripts/gguf_convert_endian.pyc
+${PYSITELIB}/gguf/scripts/gguf_convert_endian.pyo
+${PYSITELIB}/gguf/scripts/gguf_dump.py
+${PYSITELIB}/gguf/scripts/gguf_dump.pyc
+${PYSITELIB}/gguf/scripts/gguf_dump.pyo
+${PYSITELIB}/gguf/scripts/gguf_editor_gui.py
+${PYSITELIB}/gguf/scripts/gguf_editor_gui.pyc
+${PYSITELIB}/gguf/scripts/gguf_editor_gui.pyo
+${PYSITELIB}/gguf/scripts/gguf_hash.py
+${PYSITELIB}/gguf/scripts/gguf_hash.pyc
+${PYSITELIB}/gguf/scripts/gguf_hash.pyo
+${PYSITELIB}/gguf/scripts/gguf_new_metadata.py
+${PYSITELIB}/gguf/scripts/gguf_new_metadata.pyc
+${PYSITELIB}/gguf/scripts/gguf_new_metadata.pyo
+${PYSITELIB}/gguf/scripts/gguf_set_metadata.py
+${PYSITELIB}/gguf/scripts/gguf_set_metadata.pyc
+${PYSITELIB}/gguf/scripts/gguf_set_metadata.pyo
+${PYSITELIB}/gguf/tensor_mapping.py
+${PYSITELIB}/gguf/tensor_mapping.pyc
+${PYSITELIB}/gguf/tensor_mapping.pyo
+${PYSITELIB}/gguf/utility.py
+${PYSITELIB}/gguf/utility.pyc
+${PYSITELIB}/gguf/utility.pyo
+${PYSITELIB}/gguf/vocab.py
+${PYSITELIB}/gguf/vocab.pyc
+${PYSITELIB}/gguf/vocab.pyo
diff --git a/py-gguf/distinfo b/py-gguf/distinfo
new file mode 100644
index 0000000000..059d1328b6
--- /dev/null
+++ b/py-gguf/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (llama.cpp-b6959.tar.gz) = 2fc857bd5c6a2e53f79cbcd30e0d445e619f9801b337b483331561f865707289
+SHA512 (llama.cpp-b6959.tar.gz) = 2fccb2771664fc355cc0d23baf9d037ec6ac553a4e08cb3697f06e9226f8afac6ed8fb266b44fdd7017fa1012171d78bafea72637215e5cd468da36d2f6fc5a0
+Size (llama.cpp-b6959.tar.gz) = 26422088 bytes


Home | Main Index | Thread Index | Old Index