Jelle van der Waa pushed to branch main at Arch Linux / Packaging / Packages / 
pystatgrab


Commits:
f0e0146b by loqs at 2024-04-17T19:25:21+00:00
Change to a PEP 517 based workflow

- - - - -
259af7e2 by loqs at 2024-04-17T19:25:24+00:00
Change to SPDX license identifier

https://github.com/libstatgrab/pystatgrab/blob/PYSTATGRAB_0_7_1/setup.py#L11

- - - - -


1 changed file:

- PKGBUILD


Changes:

=====================================
PKGBUILD
=====================================
@@ -7,9 +7,9 @@ pkgrel=1
 pkgdesc="Python bindings for libstatgrab"
 arch=('x86_64')
 url="https://www.i-scream.org/pystatgrab";
-license=('GPL')
+license=('LGPL-2.1-or-later')
 depends=('python' 'libstatgrab')
-makedepends=('cython' 'python-setuptools')
+makedepends=('cython' 'python-setuptools' 'python-build' 'python-installer' 
'python-wheel')
 validpgpkeys=('4BD95F908A5040E8D26CD6816C226B37FDF38D55') # Tim Bishop 
<t...@bishnet.net>
 
source=(https://ftp.i-scream.org/pub/i-scream/$pkgname/$pkgname-$pkgver.tar.gz{,.asc})
 sha256sums=('dbef0b5fbc073c8956c0b630b48a89bf14afb8cb32c1fff3af13f389f73d6b31'
@@ -23,9 +23,13 @@ prepare() {
   rm statgrab.c
 }
 
+build() {
+  cd "${srcdir}"/$pkgname-$pkgver
+  python -m build --wheel --no-isolation
+}
+
 package() {
   cd "${srcdir}"/$pkgname-$pkgver
 
-  python setup.py build
-  python setup.py install --prefix="${pkgdir}"/usr
+  python -m installer --destdir="$pkgdir" dist/*.whl
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/pystatgrab/-/compare/7cb488aab8e76d6b2354cdbabf22907151f11393...259af7e23f216567fe44e0c336e940ac1d55f7c2

-- 
This project does not include diff previews in email notifications.
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/pystatgrab/-/compare/7cb488aab8e76d6b2354cdbabf22907151f11393...259af7e23f216567fe44e0c336e940ac1d55f7c2
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to