Date: Tue, 07 Apr 2026 09:58:34 +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: c7ff4334d2ef - main - misc/py-mistral-common: New port: Common utilities for Mistral AI models Message-ID: <69d4d54a.46535.5a1fe222@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=c7ff4334d2ef55e254c420c5b1614535f33567dd commit c7ff4334d2ef55e254c420c5b1614535f33567dd Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2026-04-07 09:54:32 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2026-04-07 09:58:10 +0000 misc/py-mistral-common: New port: Common utilities for Mistral AI models --- misc/Makefile | 1 + misc/py-mistral-common/Makefile | 40 +++++++++++++++++++++++ misc/py-mistral-common/distinfo | 3 ++ misc/py-mistral-common/files/patch-pyproject.toml | 12 +++++++ misc/py-mistral-common/pkg-descr | 3 ++ 5 files changed, 59 insertions(+) diff --git a/misc/Makefile b/misc/Makefile index 88f574fc0ea0..51b11a8a3156 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -525,6 +525,7 @@ SUBDIR += py-mem0ai SUBDIR += py-mffpy SUBDIR += py-misaki + SUBDIR += py-mistral-common SUBDIR += py-mixpanel SUBDIR += py-ml-collections SUBDIR += py-mmcv diff --git a/misc/py-mistral-common/Makefile b/misc/py-mistral-common/Makefile new file mode 100644 index 000000000000..7ffb4eb92b42 --- /dev/null +++ b/misc/py-mistral-common/Makefile @@ -0,0 +1,40 @@ +PORTNAME= mistral-common +DISTVERSIONPREFIX= v +DISTVERSION= 1.11.0 +CATEGORIES= misc python # machine-learning +#MASTER_SITES= PYPI # tests are broken in PYPI tarball +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= ${PORTNAME:S/-/_/}-${DISTVERSION} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Common utilities for Mistral AI models +WWW= https://github.com/mistralai/mistral-common + +LICENSE= APACHE20 + +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}jsonschema>=4.21.1:devel/py-jsonschema@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}numpy1>=1.25:math/py-numpy1@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pillow>=10.3.0:graphics/py-pillow@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pydantic2>=2.7<3.0:devel/py-pydantic2@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pydantic-extra-types>=2:devel/py-pydantic-extra-types@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}requests>=2.0.0:www/py-requests@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}tiktoken>=0.7.0:textproc/py-tiktoken@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.11.0:devel/py-typing-extensions@${PY_FLAVOR} + +USES= python +USE_PYTHON= pep517 autoplist pytest + +USE_GITHUB= yes +GH_ACCOUNT= mistralai + +NO_ARCH= yes + +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} +TEST_WRKSRC= ${WRKSRC}/tests +TEST_ARGS= --import-mode=importlib + +# tests as of 1.11.0: 2 failed, 953 passed, 16 skipped, 2 warnings in 18.64s, see https://github.com/mistralai/mistral-common/issues/210, https://github.com/mistralai/mistral-common/issues/211 + +.include <bsd.port.mk> diff --git a/misc/py-mistral-common/distinfo b/misc/py-mistral-common/distinfo new file mode 100644 index 000000000000..417b1b155604 --- /dev/null +++ b/misc/py-mistral-common/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1775555017 +SHA256 (mistralai-mistral-common-v1.11.0_GH0.tar.gz) = 287adfaae7f21860d9132aec5bedab9c353945726cd75e9cee6190b0fef510bb +SIZE (mistralai-mistral-common-v1.11.0_GH0.tar.gz) = 6835425 diff --git a/misc/py-mistral-common/files/patch-pyproject.toml b/misc/py-mistral-common/files/patch-pyproject.toml new file mode 100644 index 000000000000..acf6180da640 --- /dev/null +++ b/misc/py-mistral-common/files/patch-pyproject.toml @@ -0,0 +1,12 @@ +--- pyproject.toml.orig 2026-04-06 20:00:28 UTC ++++ pyproject.toml +@@ -7,8 +7,7 @@ authors = [{name = "bam4d", email = "bam4d@mistral.ai" + version = "1.11.0" + description = "Mistral-common is a library of common utilities for Mistral AI." + authors = [{name = "bam4d", email = "bam4d@mistral.ai"}] +-license = "Apache-2.0" +-license-files = ["LICENSE"] ++license = {text = "Apache-2.0"} + readme = "README.md" + requires-python = ">=3.10.0,<3.15" + diff --git a/misc/py-mistral-common/pkg-descr b/misc/py-mistral-common/pkg-descr new file mode 100644 index 000000000000..cc928a085e7b --- /dev/null +++ b/misc/py-mistral-common/pkg-descr @@ -0,0 +1,3 @@ +mistral-common provides common utilities for working with Mistral AI models, +including tokenizers, conversation templates, and model-specific utilities. +It supports all Mistral AI model families including function calling.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69d4d54a.46535.5a1fe222>
