Merge pull request #3123 from lazka/python-iniconfig-pyproject

python-iniconfig: port to build/installer
This commit is contained in:
Christoph Reiter
2022-07-27 18:09:32 +02:00
committed by GitHub

View File

@@ -1,16 +1,20 @@
# Maintainer: Christoph Reiter <reiter.christoph@gmail.com>
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
}