testing/py3-orderedmultidict: build with gpep517

This commit is contained in:
ptrcnull 2024-08-06 09:40:29 +02:00
parent 26c4634620
commit 571ea3271c

View File

@ -3,28 +3,35 @@
pkgname=py3-orderedmultidict
_pkgname=orderedmultidict
pkgver=1.0.1
pkgrel=6
pkgrel=7
pkgdesc="Ordered Multivalue Dictionary"
url="https://github.com/gruns/orderedmultidict"
arch="noarch"
license="Unlicense"
depends="py3-six"
makedepends="py3-setuptools"
checkdepends="py3-pycodestyle py3-flake8"
makedepends="py3-setuptools py3-gpep517"
checkdepends="py3-pycodestyle py3-flake8 py3-pytest"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/"$_pkgname-$pkgver
build() {
python3 setup.py build
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 setup.py test
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="5a826bb46dfe9d7e6e2159bf545612a35dd0f1bb5817c1fd78e0f3f4019f9144b36be94af08f87e881a310f593091df09702d001624c377f559a30f64b219c24 orderedmultidict-1.0.1.tar.gz"
sha512sums="
5a826bb46dfe9d7e6e2159bf545612a35dd0f1bb5817c1fd78e0f3f4019f9144b36be94af08f87e881a310f593091df09702d001624c377f559a30f64b219c24 orderedmultidict-1.0.1.tar.gz
"