diff options
author | Daniel Bershatsky | 2024-06-28 10:45:47 +0300 |
---|---|---|
committer | Daniel Bershatsky | 2024-06-28 10:45:47 +0300 |
commit | 8f0acc860e0e58cb21501977b5704ccbfdcca9d0 (patch) | |
tree | 3d33790ad9150032cd0544dbb8d34fe60a2f015c | |
parent | 6096ef0912d8e2ea78d41f2d347477c24fe5a789 (diff) | |
download | aur-8f0acc860e0e58cb21501977b5704ccbfdcca9d0.tar.gz |
Bump version to 4.42.0
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 10 |
2 files changed, 11 insertions, 5 deletions
@@ -1,6 +1,6 @@ pkgbase = python-transformers pkgdesc = State-of-the-art Natural Language Processing for Jax, PyTorch and TensorFlow - pkgver = 4.41.2 + pkgver = 4.42.0 pkgrel = 1 url = https://github.com/huggingface/transformers arch = any @@ -25,7 +25,7 @@ pkgbase = python-transformers optdepends = python-pytorch: PyTorch support optdepends = python-tensorflow: TensorFlow support optdepends = python-tf2onnx: TensorFlow support - source = python-transformers-4.41.2.tar.gz::https://github.com/huggingface/transformers/archive/refs/tags/v4.41.2.tar.gz - sha256sums = a1dea0cae3e952f5e14b04a31c7ae173eb5c2f7149349e73405612be494a971c + source = python-transformers-4.42.0.tar.gz::https://github.com/huggingface/transformers/archive/refs/tags/v4.42.0.tar.gz + sha256sums = 95242d341b046bf2c3968f23a56dd8f45369dc29ea8cf35335fd6299bdf6f1f9 pkgname = python-transformers @@ -3,7 +3,7 @@ pkgname=python-transformers _pkgname=${pkgname#python-} -pkgver=4.41.2 +pkgver=4.42.0 pkgrel=1 pkgdesc="State-of-the-art Natural Language Processing for Jax, PyTorch and TensorFlow" arch=('any') @@ -33,7 +33,13 @@ optdepends=( source=( "python-transformers-$pkgver.tar.gz"::"https://github.com/huggingface/transformers/archive/refs/tags/v$pkgver.tar.gz" ) -sha256sums=('a1dea0cae3e952f5e14b04a31c7ae173eb5c2f7149349e73405612be494a971c') +sha256sums=('95242d341b046bf2c3968f23a56dd8f45369dc29ea8cf35335fd6299bdf6f1f9') + +prepare() { + sed -i 's/"numpy>=1.17,<2.0",/"numpy",/' transformers-$pkgver/setup.py + sed -i '/"numpy",/d' \ + transformers-$pkgver/src/transformers/dependency_versions_check.py +} build() { python -m build -nw "transformers-$pkgver" |