diff options
author | a821 | 2023-05-04 10:57:57 +0200 |
---|---|---|
committer | a821 | 2023-05-04 10:57:57 +0200 |
commit | 6212d4b2a5d0d5846127c21d44b62a6b340b8c80 (patch) | |
tree | 6525eac6a35816db50b38172d4875acda11c1220 | |
parent | b847955b6d0d964677a02f2706fcf9822dd4337d (diff) | |
download | aur-6212d4b2a5d0d5846127c21d44b62a6b340b8c80.tar.gz |
bump for python 3.11 rebuild
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 10 |
3 files changed, 13 insertions, 6 deletions
@@ -1,11 +1,14 @@ pkgbase = python-msgpack-numpy pkgdesc = Serialize numpy arrays using msgpack pkgver = 0.4.8 - pkgrel = 1 + pkgrel = 2 url = https://pypi.org/project/msgpack-numpy/ arch = any license = BSD makedepends = python-setuptools + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel depends = python-numpy depends = python-msgpack source = python-msgpack-numpy-0.4.8.tar.gz::https://github.com/lebedov/msgpack-numpy/archive/0.4.8.tar.gz diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..4785aa5f48e2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +* +!/.SRCINFO +!/PKGBUILD +!/.gitignore @@ -3,12 +3,12 @@ pkgname=python-msgpack-numpy pkgver=0.4.8 -pkgrel=1 +pkgrel=2 pkgdesc="Serialize numpy arrays using msgpack" url="https://pypi.org/project/msgpack-numpy/" depends=(python-numpy python-msgpack) -makedepends=(python-setuptools) +makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel') license=(BSD) arch=(any) source=("${pkgname}-${pkgver}.tar.gz::https://github.com/lebedov/msgpack-numpy/archive/${pkgver}.tar.gz") @@ -16,16 +16,16 @@ sha256sums=('730a6fab30bf6656003d7322a834b3673a36a85949d0539d504665f63cd95a44') build() { cd "msgpack-numpy-${pkgver}" - python setup.py build + python -m build --wheel --no-isolation } check() { cd "msgpack-numpy-${pkgver}" - python setup.py test + python -m unittest -v } package() { cd "msgpack-numpy-${pkgver}" - python setup.py install --skip-build --root="$pkgdir" --optimize=1 + python -m installer --destdir="$pkgdir" dist/*.whl install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md" } |