






















Also add python-hatchling to the makedepends array.
diff --git a/PKGBUILD b/PKGBUILD
index 70e01ae..6b1b2f3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,16 +1,16 @@
# Maintainer: Will Handley <wh260@cam.ac.uk> (aur.archlinux.org/account/wjhandley)
pkgname=python-mistralai
_name=${pkgname#python-}
-pkgver=1.12.4
+pkgver=2.1.3
pkgrel=1
pkgdesc="You can use the Mistral Python client to interact with the Mistral AI API."
arch=(any)
url="https://github.com/mistralai/client-python"
license=(MIT)
groups=()
-depends=(python-pydantic python-eval-type-backport python-dateutil python-typing-inspection python-httpx python-invoke python-opentelemetry-api python-opentelemetry-sdk python-opentelemetry-exporter-otlp-proto-http python-yaml)
+depends=(python-pydantic python-eval-type-backport python-dateutil python-typing-inspection python-httpx python-opentelemetry-api python-opentelemetry-semantic-conventions)
optdepends=('python-google-auth: gcp' 'python-requests: gcp' 'python-mcp: agents' 'python-griffe: agents' 'python-authlib: agents' 'python-websockets: realtime')
-makedepends=(python-poetry-core python-build python-installer python-wheel)
+makedepends=(python-invoke python-yaml python-poetry-core python-build python-installer python-wheel python-opentelemetry-sdk python-hatchling)
provides=()
conflicts=()
replaces=()
@@ -18,7 +18,7 @@ backup=()
options=(!emptydirs)
install=
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
-sha256sums=('e52b53bab58025dcd208eeac13e3c3df5778d4112eeca1f08124096c7738929f')
+sha256sums=('0c5de4855b043cd0582406d5c1ddfd91e176f484a158e6ee0b4a0054231be266')
build() {
cd "$srcdir/$_name-$pkgver"
I went through the pyproject.toml differences between 1.12.4 and 2.0.4 and created a diff for you:
diff --git a/PKGBUILD b/PKGBUILD
index 70e01ae..090e2a6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,16 +1,16 @@
# Maintainer: Will Handley <wh260@cam.ac.uk> (aur.archlinux.org/account/wjhandley)
pkgname=python-mistralai
_name=${pkgname#python-}
-pkgver=1.12.4
+pkgver=2.0.4
pkgrel=1
pkgdesc="You can use the Mistral Python client to interact with the Mistral AI API."
arch=(any)
url="https://github.com/mistralai/client-python"
license=(MIT)
groups=()
-depends=(python-pydantic python-eval-type-backport python-dateutil python-typing-inspection python-httpx python-invoke python-opentelemetry-api python-opentelemetry-sdk python-opentelemetry-exporter-otlp-proto-http python-yaml)
+depends=(python-pydantic python-eval-type-backport python-dateutil python-typing-inspection python-httpx python-opentelemetry-api python-opentelemetry-semantic-conventions)
optdepends=('python-google-auth: gcp' 'python-requests: gcp' 'python-mcp: agents' 'python-griffe: agents' 'python-authlib: agents' 'python-websockets: realtime')
-makedepends=(python-poetry-core python-build python-installer python-wheel)
+makedepends=(python-invoke python-yaml python-poetry-core python-build python-installer python-wheel python-opentelemetry-sdk )
provides=()
conflicts=()
replaces=()
@@ -18,7 +18,7 @@ backup=()
options=(!emptydirs)
install=
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
-sha256sums=('e52b53bab58025dcd208eeac13e3c3df5778d4112eeca1f08124096c7738929f')
+sha256sums=('aba985459f63e80e9a1bec3287721f714cbd9633bf87179096aed0c951763ba2')
build() {
cd "$srcdir/$_name-$pkgver"
This update is particularly important to me because mistral-vibe 2.5.0, which I maintain, depends on this later version of python-mistralai.
@wjhandley python-httpx should be a dependency of mistralai
@wjhandley you can remove python-orjson and python-eval-type-backport from dependencies and edit optdepends to be:
optdepends=('python-google-auth: gcp' 'python-requests: gcp' 'python-mcp: agents' 'python-griffe: agents' 'python-authlib: agents')
and makedepends to be:
makedepends=('python-poetry-core' 'python-build' 'python-installer' 'python-wheel')
and please remove provides=(lsbi) from PKGBUILD file
@wjhandley The version 1.6.0 has been released. You need to update some dependencies (removing python-jsonpath-python, movine python-google-auth and python-requests to optional) and please add the url https://github.com/mistralai/client-python
@wjhandley the dependency should be 'python-requests' not 'python-request'
@wjhandley a new version has been published 1.5.0 and you need to update its dependencies.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。
@wjhandley Could you add me as co-maintainer?