testing/py3-eradicate: build with gpep517

This commit is contained in:
ptrcnull 2024-08-30 23:18:53 +02:00
parent 4c488270ec
commit 24ee216dee

View file

@ -3,24 +3,27 @@
pkgname=py3-eradicate
_pkgname=eradicate
pkgver=2.3.0
pkgrel=1
pkgrel=2
pkgdesc="Removes commented-out code"
options="!check" # no test suite
url="https://github.com/myint/eradicate"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
makedepends="py3-setuptools py3-gpep517"
subpackages="$pkgname-doc $pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/e/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
options="!check" # no test suite
build() {
python3 setup.py build
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
gpep517 install-wheel --destdir "$pkgdir" \
.dist/*.whl
install -Dm644 README.rst -t "$pkgdir"/usr/share/doc/"$pkgname"
}