mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/py3-progressbar2: build with gpep517
This commit is contained in:
parent
6cf5f00de5
commit
b93a8c7f98
@ -3,32 +3,37 @@
|
||||
pkgname=py3-progressbar2
|
||||
_pkgname=progressbar2
|
||||
pkgver=4.2.0
|
||||
pkgrel=2
|
||||
pkgrel=3
|
||||
pkgdesc="Text progress bar library for Python"
|
||||
url="https://github.com/WoLpH/python-progressbar"
|
||||
arch="noarch !s390x" # py3-utils
|
||||
license="BSD-3-Clause"
|
||||
replaces="py-progressbar" # for backwards compatibility
|
||||
provides="py-progressbar=$pkgver-r$pkgrel" # for backwards compatibility
|
||||
depends="python3 py3-utils py3-freezegun"
|
||||
makedepends="py3-setuptools"
|
||||
makedepends="py3-setuptools py3-gpep517"
|
||||
checkdepends="py3-pytest py3-pytest-cov"
|
||||
|
||||
subpackages="$pkgname-pyc"
|
||||
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
||||
|
||||
builddir="$srcdir/$_pkgname-$pkgver"
|
||||
|
||||
replaces="py-progressbar" # for backwards compatibility
|
||||
provides="py-progressbar=$pkgver-r$pkgrel" # for backwards compatibility
|
||||
|
||||
|
||||
build() {
|
||||
python3 setup.py build
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
check() {
|
||||
PYTHONPATH="$PWD" pytest
|
||||
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