[arch-commits] Commit in python-littleutils/trunk (PKGBUILD)
Daniel M. Capella
polyzen at gemini.archlinux.org
Tue Sep 6 05:00:59 UTC 2022
Date: Tuesday, September 6, 2022 @ 05:00:58
Author: polyzen
Revision: 1294170
upgpkg: python-littleutils 0.2.2-4: Use PEP 517
Modified:
python-littleutils/trunk/PKGBUILD
----------+
PKGBUILD | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-09-06 04:53:05 UTC (rev 1294169)
+++ PKGBUILD 2022-09-06 05:00:58 UTC (rev 1294170)
@@ -4,13 +4,14 @@
_name=littleutils
pkgname=python-littleutils
pkgver=0.2.2
-pkgrel=3
+pkgrel=4
pkgdesc='Small personal collection of python utility functions'
arch=('any')
url=https://github.com/alexmojaki/littleutils
license=('MIT')
depends=('python')
-makedepends=('python-setuptools')
+makedepends=('python-build' 'python-installer' 'python-setuptools'
+ 'python-wheel')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz"
'littleutils-LICENSE::https://raw.githubusercontent.com/alexmojaki/littleutils/master/LICENSE')
sha256sums=('e6cae3a4203e530d51c9667ed310ffe3b1948f2876e3d69605b3de4b7d96916f'
@@ -20,7 +21,7 @@
build() {
cd $_name-$pkgver
- python setup.py build
+ python -m build --wheel --skip-dependency-check --no-isolation
}
check() {
@@ -32,5 +33,5 @@
install -Dm644 littleutils-LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
cd $_name-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ python -m installer --destdir="$pkgdir" dist/*.whl
}
More information about the arch-commits
mailing list