diff options
author | Caleb Maclennan | 2023-05-03 23:32:39 +0300 |
---|---|---|
committer | Caleb Maclennan | 2023-05-03 23:32:39 +0300 |
commit | d9c6ea2b50c3473d4ac3713ea47fe5c299f5fbc5 (patch) | |
tree | b2ba41f5426cd9ec3618368978942fc6280900bb | |
parent | 9b8e9fc1572f81dbf1b9758022a5af2ea69b28e5 (diff) | |
download | aur-d9c6ea2b50c3473d4ac3713ea47fe5c299f5fbc5.tar.gz |
upgpkg: python-grandalf 0.7-4
Rebuild for Python 3.11, normalize PEP517 build tooling
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 11 |
2 files changed, 10 insertions, 6 deletions
@@ -1,12 +1,15 @@ pkgbase = python-grandalf pkgdesc = graph and drawing algorithms framework pkgver = 0.7 - pkgrel = 3 + pkgrel = 4 url = https://github.com/bdcht/grandalf arch = any license = MIT checkdepends = python-pytest checkdepends = python-pytest-runner + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel makedepends = python-setuptools depends = python depends = python-ply @@ -4,14 +4,15 @@ pkgname=python-grandalf _pkgname=${pkgname#python-} pkgver=0.7 -pkgrel=3 +pkgrel=4 pkgdesc='graph and drawing algorithms framework' arch=(any) url="https://github.com/bdcht/$_pkgname" license=(MIT) depends=(python python-ply) -makedepends=(python-setuptools) +makedepends=(python-{build,installer,wheel} + python-setuptools) checkdepends=(python-pytest python-pytest-runner) _archive="$_pkgname-$pkgver" @@ -20,16 +21,16 @@ sha256sums=('b3112299fe0a9123c088a16bf2f1b541d0d91199b77170a9739b569bd16a828e') build() { cd "$_archive" - python setup.py build + python -m build -wn } check() { cd "$_archive" - python setup.py pytest + python -m pytest } package() { cd "$_archive" - python setup.py install --root="$pkgdir" --optimize=1 --skip-build + python -m installer -d "$pkgdir" dist/*.whl install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE } |