mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/qtile: build with gpep517
This commit is contained in:
parent
0f41fad4c8
commit
61727ae2ca
@ -3,7 +3,7 @@
|
||||
# Maintainer: Emma Nora Theuer <kontakt@entheuer.de>
|
||||
pkgname=qtile
|
||||
pkgver=0.23.0
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="A full-featured, hackable tiling X11 window manager written and configured in Python"
|
||||
url="https://github.com/qtile/qtile"
|
||||
arch="all"
|
||||
@ -20,6 +20,7 @@ makedepends="
|
||||
py3-cffi
|
||||
py3-setuptools
|
||||
py3-setuptools_scm
|
||||
py3-gpep517
|
||||
"
|
||||
options="!check" # broken due to unavailable packages
|
||||
subpackages="$pkgname-pyc"
|
||||
@ -27,11 +28,20 @@ source="qtile-$pkgver.tar.gz::https://github.com/qtile/qtile/archive/v$pkgver.ta
|
||||
|
||||
build() {
|
||||
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
|
||||
python3 setup.py build
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
check() {
|
||||
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
||||
.testenv/bin/python3 -m pytest
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 setup.py install --skip-build --root="$pkgdir"
|
||||
gpep517 install-wheel --destdir "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
|
Loading…
Reference in New Issue
Block a user