mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 05:47:13 +02:00
testing/py3-eradicate: build with gpep517
This commit is contained in:
parent
4c488270ec
commit
24ee216dee
@ -3,24 +3,27 @@
|
|||||||
pkgname=py3-eradicate
|
pkgname=py3-eradicate
|
||||||
_pkgname=eradicate
|
_pkgname=eradicate
|
||||||
pkgver=2.3.0
|
pkgver=2.3.0
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc="Removes commented-out code"
|
pkgdesc="Removes commented-out code"
|
||||||
options="!check" # no test suite
|
|
||||||
url="https://github.com/myint/eradicate"
|
url="https://github.com/myint/eradicate"
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
depends="python3"
|
depends="python3"
|
||||||
makedepends="py3-setuptools"
|
makedepends="py3-setuptools py3-gpep517"
|
||||||
subpackages="$pkgname-doc $pkgname-pyc"
|
subpackages="$pkgname-doc $pkgname-pyc"
|
||||||
source="https://files.pythonhosted.org/packages/source/e/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
source="https://files.pythonhosted.org/packages/source/e/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
||||||
builddir="$srcdir"/$_pkgname-$pkgver
|
builddir="$srcdir"/$_pkgname-$pkgver
|
||||||
|
options="!check" # no test suite
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
python3 setup.py build
|
gpep517 build-wheel \
|
||||||
|
--wheel-dir .dist \
|
||||||
|
--output-fd 3 3>&1 >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
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"
|
install -Dm644 README.rst -t "$pkgdir"/usr/share/doc/"$pkgname"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user