diff options
Diffstat (limited to 'community/py3-argh/APKBUILD')
-rw-r--r-- | community/py3-argh/APKBUILD | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/community/py3-argh/APKBUILD b/community/py3-argh/APKBUILD index 4a657dc01a1..3c78c13245c 100644 --- a/community/py3-argh/APKBUILD +++ b/community/py3-argh/APKBUILD @@ -1,33 +1,42 @@ # Contributor: Fabian Affolter <fabian@affolter-engineering.ch> # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> pkgname=py3-argh -_pkgname=argh -pkgver=0.26.2 -pkgrel=4 +pkgver=0.31.2 +pkgrel=1 pkgdesc="Python3 argparse wrapper" -options="!check" # Requires unpackaged iocapture url="https://github.com/neithere/argh" arch="noarch" license="LGPL-3.0-or-later" depends="python3" -makedepends="py3-setuptools" +makedepends=" + py3-gpep517 + py3-flit-core + " checkdepends="py3-mock py3-pytest" -source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" -builddir="$srcdir/$_pkgname-$pkgver" +subpackages="$pkgname-pyc" +source="https://github.com/neithere/argh/archive/v$pkgver/py3-argh-$pkgver.tar.gz" +builddir="$srcdir/argh-$pkgver" replaces="py-argh" # Backwards compatibility provides="py-argh=$pkgver-r$pkgrel" # Backwards compatibility build() { - python3 setup.py build + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 } check() { - python3 setup.py test + python3 -m venv --clear --without-pip --system-site-packages .testenv + .testenv/bin/python3 -m installer .dist/*.whl + .testenv/bin/python3 -m pytest } package() { - python3 setup.py install --prefix=/usr --root="$pkgdir" + python3 -m installer -d "$pkgdir" \ + .dist/*.whl } -sha512sums="90382900d5cec9629dacb4459a2c9491d1425b66fa3f90d7cbf511dec846a99dbb9424f3e08f0c006da48fbf9c067078705be70b314700541fd800630e4b1707 argh-0.26.2.tar.gz" +sha512sums=" +6e1e6d68364d0ee1fb6b1e48c01916500c5a460807f2ea78abd79d0d4d0e02d2d1400f68b596a962fff1e6ac52e3d3058ab6fa144c4ee348abe9edfeff59e9f5 py3-argh-0.31.2.tar.gz +" |