Date: Tue, 07 Apr 2026 09:58:19 +0000 From: Yuri Victorovich <yuri@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 18c6f1ad2468 - main - misc/py-lm-format-enforcer: New port: Enforce the output format (JSON Schema, regex) of a language model Message-ID: <69d4d53b.45660.1c8ae31@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=18c6f1ad24687648bdfe985fa1c83e2b2ce5801e commit 18c6f1ad24687648bdfe985fa1c83e2b2ce5801e Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2026-04-07 04:31:35 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2026-04-07 09:58:08 +0000 misc/py-lm-format-enforcer: New port: Enforce the output format (JSON Schema, regex) of a language model --- misc/Makefile | 1 + misc/py-lm-format-enforcer/Makefile | 26 ++++++++++++++++++++++++++ misc/py-lm-format-enforcer/distinfo | 3 +++ misc/py-lm-format-enforcer/pkg-descr | 3 +++ 4 files changed, 33 insertions(+) diff --git a/misc/Makefile b/misc/Makefile index 5a31e2d54906..5e5cfa76e815 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -519,6 +519,7 @@ SUBDIR += py-llama-cpp-python SUBDIR += py-llm SUBDIR += py-llm-claude-3 + SUBDIR += py-lm-format-enforcer SUBDIR += py-log_symbols SUBDIR += py-mcp SUBDIR += py-mem0ai diff --git a/misc/py-lm-format-enforcer/Makefile b/misc/py-lm-format-enforcer/Makefile new file mode 100644 index 000000000000..3011c8a76f27 --- /dev/null +++ b/misc/py-lm-format-enforcer/Makefile @@ -0,0 +1,26 @@ +PORTNAME= lm-format-enforcer +DISTVERSION= 0.11.3 +CATEGORIES= misc python # machine-learning +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= ${PORTNAME:C/[-_.]+/_/g}-${DISTVERSION} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Enforce the output format (JSON Schema, regex) of a language model +WWW= https://github.com/noamgat/lm-format-enforcer + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0:devel/py-poetry-core@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}interegular>=0.3.2:textproc/py-interegular@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pydantic2>=1.10.8:devel/py-pydantic2@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pyyaml>0:devel/py-pyyaml@${PY_FLAVOR} + +USES= python +USE_PYTHON= pep517 autoplist + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/misc/py-lm-format-enforcer/distinfo b/misc/py-lm-format-enforcer/distinfo new file mode 100644 index 000000000000..03eba5689a2f --- /dev/null +++ b/misc/py-lm-format-enforcer/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1775500352 +SHA256 (lm_format_enforcer-0.11.3.tar.gz) = e68081c108719cce284a9bcc889709b26ffb085a1945b5eba3a12cfa96d528da +SIZE (lm_format_enforcer-0.11.3.tar.gz) = 40258 diff --git a/misc/py-lm-format-enforcer/pkg-descr b/misc/py-lm-format-enforcer/pkg-descr new file mode 100644 index 000000000000..d5713e7d944a --- /dev/null +++ b/misc/py-lm-format-enforcer/pkg-descr @@ -0,0 +1,3 @@ +lm-format-enforcer enforces the output format (e.g., JSON schema or regular +expressions) of language models. It supports popular LLM libraries and +integrates with frameworks like HuggingFace and LlamaCpp.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69d4d53b.45660.1c8ae31>
