From 8c91a05e4a1f0a72dad50d6d0994b1d7f0e526f1 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 30 Aug 2023 13:55:06 -0400 Subject: [PATCH] testing/py3-dumb-init: move from user --- {user => testing}/py3-dumb-init/APKBUILD | 25 +++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) rename {user => testing}/py3-dumb-init/APKBUILD (70%) diff --git a/user/py3-dumb-init/APKBUILD b/testing/py3-dumb-init/APKBUILD similarity index 70% rename from user/py3-dumb-init/APKBUILD rename to testing/py3-dumb-init/APKBUILD index 30dc317..abacfeb 100644 --- a/user/py3-dumb-init/APKBUILD +++ b/testing/py3-dumb-init/APKBUILD @@ -5,29 +5,32 @@ _pyname=dumb-init pkgname="py3-$_pyname" pkgver=1.2.5 _pkgver=1.2.5.post1 -pkgrel=1 +pkgrel=0 arch="all" pkgdesc="Simple wrapper script which proxies signals to a child" url="https://pypi.python.org/project/$_pyname" license="MIT" -depends="python3" -makedepends="py3-setuptools" -checkdepends="py3-pytest" +makedepends=" + py3-setuptools + py3-gpep517 + py3-installer + py3-wheel + " +options="!check" # No testsuite source="$pkgname-$_pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$_pkgver.tar.gz" builddir="$srcdir"/$_pyname-$_pkgver build() { - python3 setup.py build -} - -check() { - PYTHONPATH="$srcdir" pytest || true + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 3 3>&1 >&2 } package() { - python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 - install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ + python3 -m installer -d "$pkgdir" \ + dist/*.whl } + sha512sums=" 8527ac64a4219d0bde3612b8153056b44203656aed86b1bd047b4649ee3f7e04e0c0a669841fc2f176875993d61d8d80c980a410bcd92bb8ddc9577b6980fa42 py3-dumb-init-1.2.5.post1.tar.gz "