main/py3-iniconfig: switch to gpep517

This commit is contained in:
Celeste 2023-10-28 06:43:19 +00:00 committed by Patrycja Rosa
parent c448f1183b
commit ca60d447f5

View File

@ -3,12 +3,13 @@
pkgname=py3-iniconfig
_pyname=iniconfig
pkgver=1.1.1
pkgrel=6
pkgrel=7
pkgdesc="brain-dead simple config-ini parsing"
url="https://github.com/pytest-dev/iniconfig"
arch="noarch"
license="MIT"
makedepends="py3-setuptools py3-py"
makedepends="py3-gpep517 py3-setuptools py3-wheel py3-py"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/i/$_pyname/$_pyname-$pkgver.tar.gz"
options="!check" # pytest needed, circular dep
@ -21,15 +22,20 @@ prepare() {
}
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
.testenv/bin/python3 -m installer .dist/*.whl
.testenv/bin/python3 -m pytest
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="