mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/py3-mando: build with gpep517
This commit is contained in:
parent
58fe9919c2
commit
84674a1a0f
@ -3,26 +3,30 @@
|
||||
pkgname=py3-mando
|
||||
_pkgname=mando
|
||||
pkgver=0.7.1
|
||||
pkgrel=2
|
||||
pkgrel=3
|
||||
pkgdesc="Python CLI apps with little to no effort at all!"
|
||||
options="!check" # no test suite
|
||||
url="https://mando.readthedocs.org/"
|
||||
arch="noarch"
|
||||
license="MIT"
|
||||
depends="python3 py3-six"
|
||||
makedepends="py3-setuptools"
|
||||
makedepends="py3-setuptools py3-gpep517"
|
||||
subpackages="$pkgname-doc $pkgname-pyc"
|
||||
source="https://files.pythonhosted.org/packages/source/m/$_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"
|
||||
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/"$pkgname"
|
||||
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/"$pkgname"
|
||||
|
||||
rm -rf "$pkgdir"/usr/lib/python3*/site-packages/mando/tests
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user