mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2024-09-20 11:23:16 +00:00
testing/py3-eradicate: build with gpep517
This commit is contained in:
parent
4c488270ec
commit
24ee216dee
1 changed files with 8 additions and 5 deletions
|
@ -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"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue