From nobody Wed May 22 13:57:24 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VktCn1tWTz5LmDH; Wed, 22 May 2024 13:57:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VktCm6mb4z4CMV; Wed, 22 May 2024 13:57:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716386244; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xSUVjCRAnxF47zF/Lk6xAWzn5Ec7CagyxSM7lUpTlb8=; b=IEBwD1KnlH9RGziEFACXafmQa5D77L9Bga08gmS1vqedofYtZYGyXg6FiDeUXPiuj1ezqz 9zJiOT+Ys2BsCHJJg0JaLQ1FIcQzbSH+uwipR85quj3pH6PL7qu+i5NlgmkyDXcR/r+8Rb ht56mrg6pNz9W7InDLy/Gafi/pQfnzk4QwOICVVkK2SikQ9OLhBNfV+OM01+M4oX3CXZ6p gu2g4KMX48zt6YTx8m4oN0k0tsQut7Nx5VNU5HFCWiQG2f2+bFhreSH/T0HMVkiOsvoKVV kqFEYcB2UxuMuMlRwA3kKlze7aqxXy/IIhNg4/Uh0VOIfDswIB/vo989VXKnwQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1716386244; a=rsa-sha256; cv=none; b=VcIihqk3O9F4E+XgwZLFQ3zhR6J9A86jaiZj4uHMi8NW3t5qXbecBJA23mGqFBnDJVs4ZZ y4WDPlstiqCmytX4AgFN/0z99FoB9C0dodWNepRioCsFRFJ5c5miPoCb+RxsVgJMzOS6Om UAUhGIJ5uK5eutICKiAUayxKJuPinyTRxaTP6JfGKTW4pRv60JegFrJ9/tyHp6S4/Bbghw szgQazbshZ+3KXmr8z1PmyjzEMEMntajerSYrum4/l9shdM6lam7WEIq+FOoX0lVLqxkBD c7lqyjThJTwdJmhhphqKzMBouYX6GErXFm0LmlUMAvlSI7G7/mnqpqJ7anAvNQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716386244; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xSUVjCRAnxF47zF/Lk6xAWzn5Ec7CagyxSM7lUpTlb8=; b=yUf5wnr0w62qQjkafmcoc5u3xgJx8h/a6Eodd9KuIn4PKoXU+OqX2zKJ/MXYmc7LuW8uOv pMkbvhJ8tHWeJ5/jFY4l2uFoyVlSnZtHpFlrctm3uTbSEJwAbis1bniuunY5FJD9teLvqf qrWwO/8gbpvp5Zq/gCwaRt3DdfO8y9v4oItNuRdJFIacBUjyvcaScMl16un40hXyipQ+US 9CTJogT1+BOHWM9bxiONb7EF09prZE3BSz686HlI5UN/NotX7tH7qoUWV8K58TZfFTYFDC 1TFqK6FBnAsnSiCLvy8S/gu+2+IhqWH1ZqjERMQ4UUzwC2vETZ99xy0Q7ijARQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VktCm5Jcjz17Pq; Wed, 22 May 2024 13:57:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 44MDvO3o050783; Wed, 22 May 2024 13:57:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44MDvOOM050780; Wed, 22 May 2024 13:57:24 GMT (envelope-from git) Date: Wed, 22 May 2024 13:57:24 GMT Message-Id: <202405221357.44MDvOOM050780@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dave Cottlehuber Subject: git: f0fec65dc7c2 - main - misc/py-files-to-prompt: new port - concatenate files for LLM prompts List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dch X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f0fec65dc7c2a7f8264f412b2752635ad625eadd Auto-Submitted: auto-generated The branch main has been updated by dch: URL: https://cgit.FreeBSD.org/ports/commit/?id=f0fec65dc7c2a7f8264f412b2752635ad625eadd commit f0fec65dc7c2a7f8264f412b2752635ad625eadd Author: Dave Cottlehuber AuthorDate: 2024-05-22 13:57:17 +0000 Commit: Dave Cottlehuber CommitDate: 2024-05-22 13:57:17 +0000 misc/py-files-to-prompt: new port - concatenate files for LLM prompts --- misc/Makefile | 1 + misc/py-files-to-prompt/Makefile | 31 +++++++++++++++++++++++++++++++ misc/py-files-to-prompt/distinfo | 3 +++ misc/py-files-to-prompt/pkg-descr | 4 ++++ 4 files changed, 39 insertions(+) diff --git a/misc/Makefile b/misc/Makefile index c87a02a2b6f2..d127008332ac 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -423,6 +423,7 @@ SUBDIR += py-facenet-pytorch SUBDIR += py-fast-histogram SUBDIR += py-fastscapelib + SUBDIR += py-files-to-prompt SUBDIR += py-fleep SUBDIR += py-fuzzy SUBDIR += py-gluoncv diff --git a/misc/py-files-to-prompt/Makefile b/misc/py-files-to-prompt/Makefile new file mode 100644 index 000000000000..a453d49adef7 --- /dev/null +++ b/misc/py-files-to-prompt/Makefile @@ -0,0 +1,31 @@ +PORTNAME= files-to-prompt +DISTVERSION= 0.2.1 +CATEGORIES= misc python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= dch@FreeBSD.org +COMMENT= Python CLI utility to concatenate files into a single LLM prompt +WWW= https://github.com/simonw/files-to-prompt + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=41:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}click>0:devel/py-click@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes +PORTDOCS= README.md + +OPTIONS_DEFINE= DOCS + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} \ + ${STAGEDIR}${DOCSDIR} + +.include diff --git a/misc/py-files-to-prompt/distinfo b/misc/py-files-to-prompt/distinfo new file mode 100644 index 000000000000..51f49ea15207 --- /dev/null +++ b/misc/py-files-to-prompt/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1716206253 +SHA256 (files-to-prompt-0.2.1.tar.gz) = a544a4ecbcf02c1ae562a22b9f9901b755860e651879c36c093fe549a6c503c4 +SIZE (files-to-prompt-0.2.1.tar.gz) = 8278 diff --git a/misc/py-files-to-prompt/pkg-descr b/misc/py-files-to-prompt/pkg-descr new file mode 100644 index 000000000000..ec18cadbb1b6 --- /dev/null +++ b/misc/py-files-to-prompt/pkg-descr @@ -0,0 +1,4 @@ +Concatenate a directory full of files into a single prompt for use with Large +Language Models. For background on this project see: + + https://simonwillison.net/2024/Apr/8/files-to-prompt