From nobody Tue Apr 7 09:58:34 2026 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 4fqhV26ZVXz6Z94H for ; Tue, 07 Apr 2026 09:58:34 +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 "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fqhV23hfYz47x5 for ; Tue, 07 Apr 2026 09:58:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1775555914; 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=SHaDzWdpa3914+qC+8/aTjCyrh7KgYbEvskzc77RyBA=; b=MDG7efSUfeMbxDwD5AY0Dze4A7JePRMPfhA9W/JFs1lb4eH8kEgMRepvzhOBEEZuHpA0EQ jx/o7nF0KQ+zJBI21vIjWfXRL7OsOAqx6k11yFDB+VIIoVNmhHRv+DPdsHXS5o1PooAnPV etKBwX3W9afEk7E6fNz4LJjXtVZEi+5tcyOPBFJvyjzZOfyqYmPAJFBEJ1o5vs7yBH8ouo 87fvrWoaDtjSmkdQ/k+QrtZNJsyQeFNM7bXwRewRC2QIcZN6i4BJxMoba20vo5IMY0X9PM MSokOqmRNmN/ef/jHQp7qYoRfXpism85KfMTwgr9He7SAlWqOAOuw6xj+8zoZw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1775555914; a=rsa-sha256; cv=none; b=UPqq3rE8Z3ms9n/r48Cpofg/+k7rTJVALdhMFbe2ftiK9FFsIWal1ax/RP8LWm7gsAcdZU rQK0bbd8ZwBk5FVrNRkzyWqWCWzgPc7kPoe0td9hfSxRT/fobrzWVHTmsAO3MwGzkIkUqF zMAIWbv1K/1NsE5I2BFw7j/Q4ZUENp92VYyqLQCPtws33+Z+BAFzToTJuGSoVXfo3POhCM A9XVWJxqqxpTgUM5qdpAh0JzgHpaRsmiED+q07YgrpifSouiUPCqU1AnZMG93a4mD37il7 r034cFNQ9hwORhTOHWDnxsfcJde1571Vt0yrhYy7IySMhEQf+4H/4mzRCYnLrA== 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=1775555914; 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=SHaDzWdpa3914+qC+8/aTjCyrh7KgYbEvskzc77RyBA=; b=lJpKHLFetgnyIoykj3A3r4qprl213X6I+Vqdl05ryGipebyxTNt2+aFnsjpoCUmJWjq/mg XFQkawSzzUewkzLVg79xMY5bnMgT6bkoEQndCV7EV3cMvkkTwNB3ONZF9nkWHg32bDw+il NI+4+iLo9iZx4ksuJqDcqV7ZaxOcj3CUz+URwyC/Ic34/nRj69uXZzjACuf2vm1ALi8e7d WGdZGSt2YCcSE9WPYdBXhcgBgus74ea3n/Sjw3z3oRNdu1Vxbjniq2Xxj03QPsN4Mx2jhp 80RR6k1kKAJkTy9tJ4JoILp93nk35iU6juac4qLwpHq67epItBEyp9VSGSVLGg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fqhV22yHhzbd5 for ; Tue, 07 Apr 2026 09:58:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 46535 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 07 Apr 2026 09:58:34 +0000 To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: c7ff4334d2ef - main - misc/py-mistral-common: New port: Common utilities for Mistral AI models 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: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c7ff4334d2ef55e254c420c5b1614535f33567dd Auto-Submitted: auto-generated Date: Tue, 07 Apr 2026 09:58:34 +0000 Message-Id: <69d4d54a.46535.5a1fe222@gitrepo.freebsd.org> The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=c7ff4334d2ef55e254c420c5b1614535f33567dd commit c7ff4334d2ef55e254c420c5b1614535f33567dd Author: Yuri Victorovich AuthorDate: 2026-04-07 09:54:32 +0000 Commit: Yuri Victorovich 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 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.