From 2d863ab89dcae7491124fbcf8295d7a63766ed3b Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Wed, 27 Jul 2022 17:58:40 +0200 Subject: [PATCH] python-iniconfig: port to build/installer --- python-iniconfig/PKGBUILD | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/python-iniconfig/PKGBUILD b/python-iniconfig/PKGBUILD index 71220c5b..e0f573bb 100644 --- a/python-iniconfig/PKGBUILD +++ b/python-iniconfig/PKGBUILD @@ -1,16 +1,20 @@ # Maintainer: Christoph Reiter -pkgbase=python-iniconfig -pkgname=(python-iniconfig) +pkgname=python-iniconfig pkgver=1.1.1 -pkgrel=3 +pkgrel=4 pkgdesc="brain-dead simple config-ini parsing" -url="https://github.com/RonnyPfannschmidt/iniconfig" -license=('MIT') +url="https://github.com/pytest-dev/iniconfig" +license=('spdx:MIT') arch=('any') depends=('python') -makedepends=('python-setuptools' - 'python-setuptools-scm') +makedepends=( + 'python-setuptools' + 'python-setuptools-scm' + 'python-wheel' + 'python-build' + 'python-installer' +) source=("$pkgbase-$pkgver.tar.gz::https://github.com/RonnyPfannschmidt/iniconfig/archive/v$pkgver.tar.gz") sha256sums=('a4489e91242e035cb58700d9a3c4bf49e0b106a85fefefe48025e333ea5ee49c') @@ -18,13 +22,14 @@ export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver build() { cd "$srcdir"/iniconfig-$pkgver - /usr/bin/python setup.py build + + python -m build --wheel --skip-dependency-check --no-isolation } package() { cd iniconfig-$pkgver - /usr/bin/python setup.py install --root="$pkgdir" --optimize=1 + python -m installer --destdir="${pkgdir}" dist/*.whl install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE }