diff --git a/databases/Makefile b/databases/Makefile --- a/databases/Makefile +++ b/databases/Makefile @@ -823,6 +823,7 @@ SUBDIR += py-sqlglot SUBDIR += py-sqlite-anyio SUBDIR += py-sqlite-fts4 + SUBDIR += py-sqlite-migrate SUBDIR += py-sqlite-utils SUBDIR += py-sqlite3 SUBDIR += py-sqlobject diff --git a/databases/py-sqlite-migrate/Makefile b/databases/py-sqlite-migrate/Makefile new file mode 100644 --- /dev/null +++ b/databases/py-sqlite-migrate/Makefile @@ -0,0 +1,23 @@ +PORTNAME= sqlite-migrate +DISTVERSION= 0.1b0 +CATEGORIES= databases python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= dch@FreeBSD.org +COMMENT= Python CLI utility and library for migrating SQLite schemas +WWW= https://github.com/simonw/sqlite-migrate + +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}sqlite-utils>0:databases/py-sqlite-utils@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +.include diff --git a/databases/py-sqlite-migrate/distinfo b/databases/py-sqlite-migrate/distinfo new file mode 100644 --- /dev/null +++ b/databases/py-sqlite-migrate/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1716198119 +SHA256 (sqlite-migrate-0.1b0.tar.gz) = 8d502b3ca4b9c45e56012bd35c03d23235f0823c976d4ce940cbb40e33087ded +SIZE (sqlite-migrate-0.1b0.tar.gz) = 10736 diff --git a/databases/py-sqlite-migrate/pkg-descr b/databases/py-sqlite-migrate/pkg-descr new file mode 100644 --- /dev/null +++ b/databases/py-sqlite-migrate/pkg-descr @@ -0,0 +1 @@ +A simple database migration system for SQLite, in pre-release. diff --git a/databases/py-sqlite-utils/Makefile b/databases/py-sqlite-utils/Makefile --- a/databases/py-sqlite-utils/Makefile +++ b/databases/py-sqlite-utils/Makefile @@ -1,6 +1,5 @@ PORTNAME= sqlite-utils -PORTVERSION= 3.28 -PORTREVISION= 1 +PORTVERSION= 3.36 CATEGORIES= databases python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -12,11 +11,12 @@ LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE -RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite-fts4>0:databases/py-sqlite-fts4@${PY_FLAVOR} \ +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}click-default-group>0:devel/py-click-default-group@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}click>0:devel/py-click@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}click-default-group>0:devel/py-click-default-group@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}tabulate>0:devel/py-tabulate@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}python-dateutil>0:devel/py-python-dateutil@${PY_FLAVOR} + ${PYTHON_PKGNAMEPREFIX}pluggy>0:devel/py-pluggy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}python-dateutil>0:devel/py-python-dateutil@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}sqlite-fts4>0:databases/py-sqlite-fts4@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}tabulate>0:devel/py-tabulate@${PY_FLAVOR} TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hypothesis>0:devel/py-hypothesis@${PY_FLAVOR} USES= python diff --git a/databases/py-sqlite-utils/distinfo b/databases/py-sqlite-utils/distinfo --- a/databases/py-sqlite-utils/distinfo +++ b/databases/py-sqlite-utils/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1658735281 -SHA256 (sqlite-utils-3.28.tar.gz) = 790b01f4be16c32756b9b5eae07b6b7c905b6613ca538d646877c50b05b0a53a -SIZE (sqlite-utils-3.28.tar.gz) = 188238 +TIMESTAMP = 1716198764 +SHA256 (sqlite-utils-3.36.tar.gz) = dcc311394fe86dc16f65037b0075e238efcfd2e12e65d53ed196954502996f3c +SIZE (sqlite-utils-3.36.tar.gz) = 211586 diff --git a/misc/Makefile b/misc/Makefile --- 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 @@ -441,6 +442,8 @@ SUBDIR += py-lightgbm SUBDIR += py-lightning-utilities SUBDIR += py-litellm + SUBDIR += py-llm + SUBDIR += py-llm-claude-3 SUBDIR += py-log_symbols SUBDIR += py-mffpy SUBDIR += py-mmcv diff --git a/misc/py-files-to-prompt/Makefile b/misc/py-files-to-prompt/Makefile new file mode 100644 --- /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 --- /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 --- /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 diff --git a/misc/py-llm-claude-3/Makefile b/misc/py-llm-claude-3/Makefile new file mode 100644 --- /dev/null +++ b/misc/py-llm-claude-3/Makefile @@ -0,0 +1,31 @@ +PORTNAME= llm-claude-3 +DISTVERSION= 0.3 +CATEGORIES= misc python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= dch@FreeBSD.org +COMMENT= Interact with Large Language Models by API, or locally +WWW= https://github.com/simonw/llm-claude-3 + +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}llm>=0.3:misc/py-llm@${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-llm-claude-3/distinfo b/misc/py-llm-claude-3/distinfo new file mode 100644 --- /dev/null +++ b/misc/py-llm-claude-3/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1716202989 +SHA256 (llm-claude-3-0.3.tar.gz) = 82cdbb74cf0992403aacf8dc68c0c1289c5cd667b752138de9bf059753bc5ac6 +SIZE (llm-claude-3-0.3.tar.gz) = 7922 diff --git a/misc/py-llm-claude-3/pkg-descr b/misc/py-llm-claude-3/pkg-descr new file mode 100644 --- /dev/null +++ b/misc/py-llm-claude-3/pkg-descr @@ -0,0 +1 @@ +Plugin for Anthropic Claude 3, a machine learning large language model. diff --git a/misc/py-llm/Makefile b/misc/py-llm/Makefile new file mode 100644 --- /dev/null +++ b/misc/py-llm/Makefile @@ -0,0 +1,40 @@ +PORTNAME= llm +DISTVERSION= 0.14 +CATEGORIES= misc python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= dch@FreeBSD.org +COMMENT= Interact with Large Language Models by API, or locally +WWW= https://llm.datasette.io/ \ + https://github.com/simonw/llm + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}click-default-group>=1.2.3:devel/py-click-default-group@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}click>0:devel/py-click@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}openai>=1.0.0:misc/py-openai@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pluggy>=1.0:devel/py-pluggy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pydantic2>=2.0:devel/py-pydantic2@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}python-ulid>=1<3:textproc/py-python-ulid@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}sqlite-migrate>0:databases/py-sqlite-migrate@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}types-PyYAML>=0:devel/py-types-PyYAML@${PY_FLAVOR} + +USES= python shebangfix +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-llm/distinfo b/misc/py-llm/distinfo new file mode 100644 --- /dev/null +++ b/misc/py-llm/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1715904497 +SHA256 (llm-0.14.tar.gz) = c4150eb47246342846cf57497304ed9afb918a94c5a39049e7422f1961371c09 +SIZE (llm-0.14.tar.gz) = 36664 diff --git a/misc/py-llm/pkg-descr b/misc/py-llm/pkg-descr new file mode 100644 --- /dev/null +++ b/misc/py-llm/pkg-descr @@ -0,0 +1,2 @@ +A CLI utility and Python library for interacting with Large Language Models, +including OpenAI, PaLM and local models installed on your own machine.