mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-07 06:17:14 +02:00
testing/py3-click-threading: build with gpep517
This commit is contained in:
parent
249173337d
commit
3dec190daf
@ -3,28 +3,33 @@
|
|||||||
pkgname=py3-click-threading
|
pkgname=py3-click-threading
|
||||||
_pyname=click-threading
|
_pyname=click-threading
|
||||||
pkgver=0.5.0
|
pkgver=0.5.0
|
||||||
pkgrel=4
|
pkgrel=5
|
||||||
pkgdesc="Utilities for multithreading in click"
|
pkgdesc="Utilities for multithreading in click"
|
||||||
url="https://github.com/click-contrib/click-threading"
|
url="https://github.com/click-contrib/click-threading"
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
depends="python3 py3-click"
|
depends="python3 py3-click"
|
||||||
makedepends="py3-setuptools"
|
makedepends="py3-setuptools py3-gpep517"
|
||||||
checkdepends="py3-pytest"
|
checkdepends="py3-pytest"
|
||||||
subpackages="$pkgname-pyc"
|
subpackages="$pkgname-pyc"
|
||||||
source="https://files.pythonhosted.org/packages/source/${_pyname%${_pyname#?}}/$_pyname/$_pyname-$pkgver.tar.gz"
|
source="https://files.pythonhosted.org/packages/source/${_pyname%${_pyname#?}}/$_pyname/$_pyname-$pkgver.tar.gz"
|
||||||
builddir="$srcdir/$_pyname-$pkgver"
|
builddir="$srcdir/$_pyname-$pkgver"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
python3 setup.py build
|
gpep517 build-wheel \
|
||||||
|
--wheel-dir .dist \
|
||||||
|
--output-fd 3 3>&1 >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
PYTHONPATH="$PWD/build/lib" pytest -v
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||||
|
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
||||||
|
.testenv/bin/python3 -m pytest
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
python3 setup.py install --skip-build --root="$pkgdir"
|
gpep517 install-wheel --destdir "$pkgdir" \
|
||||||
|
.dist/*.whl
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
|
Loading…
Reference in New Issue
Block a user