main/py3-fixtures: switch to gpep517

This commit is contained in:
Celeste 2023-10-28 07:37:01 +00:00 committed by Patrycja Rosa
parent 3ef1c815c4
commit ca32d01d82

View File

@ -2,7 +2,7 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-fixtures
pkgver=4.1.0
pkgrel=0
pkgrel=1
pkgdesc="Fixtures, reusable state for writing clean tests and more."
url="https://pypi.org/project/fixtures/"
arch="noarch"
@ -11,8 +11,15 @@ depends="
py3-pbr
python3
"
makedepends="py3-setuptools"
checkdepends="py3-testtools py3-mock"
makedepends="
py3-gpep517
py3-setuptools
py3-wheel
"
checkdepends="
py3-mock
py3-testtools
"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/f/fixtures/fixtures-$pkgver.tar.gz"
builddir="$srcdir/fixtures-$pkgver"
@ -22,16 +29,22 @@ replaces="py-fixtures" # Backwards compatibility
provides="py-fixtures=$pkgver-r$pkgrel" # Backwards compatibility
build() {
python3 setup.py build
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m testtools.run
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
.testenv/bin/python3 -m testtools.run
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
6897449fdefd07abe7714186b366fdf4505283f6747f8fa4d17044bc45da58eb36e69d89381527ccecb98e6c62c58bc6d4f558af41cbfc87b0221ae60ba71ff6 fixtures-4.1.0.tar.gz
"