From 8cfb8bb1534ba3ede10187fc53c3db1a2fae452e Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Thu, 9 May 2024 19:42:13 -0700 Subject: [PATCH] Update build method to utilize pyproject.toml --- PKGBUILD | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index d88cbcd..8e6ad3a 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -7,7 +7,7 @@ arch=('any') license=('MIT') groups=(pacman-helpers) depends=(gist mlocate pacman python pyalpm) -makedepends=(git python-setuptools) +makedepends=(python-build python-install python-setuptools) optdepends=('fzf: for the fqo script' 'mlocate: for the fqo script') checkdepends=(python-hypothesis python-pytest) @@ -17,18 +17,17 @@ sha256sums=('SKIP') build() { cd "$srcdir/$pkgname" - python setup.py build + python -m build --wheel --no-isolation } check() { cd "$srcdir/$pkgname" - python -m unittest + pytest } package() { cd "$srcdir/$pkgname" - - python setup.py install --root="$pkgdir/" --optimize=1 --skip-build + python -m installer --destdir="$pkgdir" dist/*.whl # install README install -Dm644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README.rst"