testing/py3-dotty-dict: build with gpep517

This commit is contained in:
ptrcnull 2024-08-05 22:38:31 +02:00
parent effef8549c
commit 330d10ad3c

View File

@ -2,30 +2,33 @@
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=py3-dotty-dict
pkgver=1.3.1
pkgrel=3
pkgrel=4
pkgdesc="Dictionary wrapper for quick access to deeply nested keys"
url="https://github.com/pawelzny/dotty_dict"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools py3-setuptools_scm"
makedepends="py3-poetry-core py3-gpep517"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/pawelzny/dotty_dict/archive/v$pkgver.tar.gz"
builddir="$srcdir/dotty_dict-$pkgver"
export SETUPTOOLS_SCM_PRETEND_VERSION="$pkgver"
build() {
python3 setup.py build
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
PYTHONPATH="." 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="