git » python-boolean.py.git » commit e61bf74

Switch to PEP517

author David Runge
2024-04-03 17:35:12 UTC
committer David Runge
2024-04-03 17:35:12 UTC
parent e55a2b14fe6e66ff7513599a67e8e68081a93c56

Switch to PEP517

Signed-off-by: David Runge <dvzrv@archlinux.org>

PKGBUILD +4 -4

diff --git a/PKGBUILD b/PKGBUILD
index 1dab76d..baf35a8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -11,7 +11,7 @@ arch=('any')
 url='https://github.com/bastikr/boolean.py'
 license=('BSD-2-Clause')
 depends=('python')
-makedepends=('git' 'python-setuptools')
+makedepends=('git' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel')
 checkdepends=('python-pytest')
 _commit='93589c505c256eead9757402e908fcfdc1bb5ec5'
 source=("$pkgname::git+$url#commit=$_commit")
@@ -26,19 +26,19 @@ pkgver() {
 build() {
   cd "$pkgname"
 
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 check() {
   cd "$pkgname"
 
-  pytest
+  pytest -vv
 }
 
 package() {
   cd "$pkgname"
 
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  python -m installer --destdir="$pkgdir" dist/*.whl
 
   install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE.txt
 }