Move from legacy setuptools to pyproject toml
This commit is contained in:
10
PKGBUILD
10
PKGBUILD
@ -1,13 +1,13 @@
|
||||
# Maintainer: Eric Torres <eric.torres@its-et.me>
|
||||
pkgname=packaging-scripts
|
||||
pkgver=1.7.1
|
||||
pkgrel=4
|
||||
pkgrel=5
|
||||
pkgdesc="A set of helper scripts for handling Arch Linux packages"
|
||||
arch=('any')
|
||||
license=('MIT')
|
||||
groups=(pacman-helpers)
|
||||
depends=(gist mlocate pacman python pyalpm)
|
||||
makedepends=(git python-setuptools)
|
||||
makedepends=(git python-build python-installer python-wheel)
|
||||
optdepends=('fzf: for the fqo script'
|
||||
'mlocate: for the fqo script')
|
||||
checkdepends=(python-hypothesis python-pytest)
|
||||
@ -17,18 +17,18 @@ sha256sums=('SKIP')
|
||||
|
||||
build() {
|
||||
cd "$srcdir/$pkgname"
|
||||
python setup.py build
|
||||
python -m build --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"
|
||||
|
Reference in New Issue
Block a user