Skip to content
Snippets Groups Projects
Commit ca60d447 authored by Celeste's avatar Celeste Committed by Patrycja Rosa
Browse files

main/py3-iniconfig: switch to gpep517

parent c448f118
No related branches found
No related tags found
1 merge request!54290main/py3-iniconfig: switch to gpep517
Pipeline #191925 skipped
......@@ -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="
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment