From 5d82793cbfa9e291f36cb982b5c6226a652e5cda Mon Sep 17 00:00:00 2001 From: George Rawlinson Date: Thu, 30 Dec 2021 16:56:04 +0000 Subject: [PATCH] upgpkg: python-smbmc 0.2.0-4 Replace python-dephell with PEP517 compatible method. --- python-smbmc/PKGBUILD | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/python-smbmc/PKGBUILD b/python-smbmc/PKGBUILD index c9bfbb3..b6cc979 100644 --- a/python-smbmc/PKGBUILD +++ b/python-smbmc/PKGBUILD @@ -3,28 +3,32 @@ pkgname=python-smbmc _pkgname=smbmc pkgver=0.2.0 -pkgrel=3 +pkgrel=4 pkgdesc="Supermicro BMC interface" arch=('any') url="https://github.com/grawlinson/smbmc" license=('GPL') depends=('python-requests' 'python-defusedxml') -makedepends=('python-dephell') +makedepends=('python-build' 'python-install' 'python-poetry-core') source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") b2sums=('f73f077de5e2b7e6cb96a19a9eb952f8274e0cb1b5980437b365d6586ef557bbdd494362f301737776c924de2f580d91eec4e45ed18c32dd712b37565fb98784') -prepare() { - cd "$_pkgname-$pkgver" - dephell deps convert --from pyproject.toml --to setup.py -} - build() { cd "$_pkgname-$pkgver" - python setup.py build + + python -m build \ + --wheel \ + --skip-dependency-check \ + --no-isolation } package() { cd "$_pkgname-$pkgver" - python setup.py install --root="$pkgdir" --optimize=1 --skip-build - install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + + python -m install \ + --optimize=1 \ + --destdir="$pkgdir" \ + dist/*.whl + + install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE }