Update build method to utilize pyproject.toml
This commit is contained in:
parent
8c8a2283e3
commit
8cfb8bb153
9
PKGBUILD
9
PKGBUILD
@ -7,7 +7,7 @@ arch=('any')
|
|||||||
license=('MIT')
|
license=('MIT')
|
||||||
groups=(pacman-helpers)
|
groups=(pacman-helpers)
|
||||||
depends=(gist mlocate pacman python pyalpm)
|
depends=(gist mlocate pacman python pyalpm)
|
||||||
makedepends=(git python-setuptools)
|
makedepends=(python-build python-install python-setuptools)
|
||||||
optdepends=('fzf: for the fqo script'
|
optdepends=('fzf: for the fqo script'
|
||||||
'mlocate: for the fqo script')
|
'mlocate: for the fqo script')
|
||||||
checkdepends=(python-hypothesis python-pytest)
|
checkdepends=(python-hypothesis python-pytest)
|
||||||
@ -17,18 +17,17 @@ sha256sums=('SKIP')
|
|||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$srcdir/$pkgname"
|
cd "$srcdir/$pkgname"
|
||||||
python setup.py build
|
python -m build --wheel --no-isolation
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
cd "$srcdir/$pkgname"
|
cd "$srcdir/$pkgname"
|
||||||
python -m unittest
|
pytest
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$srcdir/$pkgname"
|
cd "$srcdir/$pkgname"
|
||||||
|
python -m installer --destdir="$pkgdir" dist/*.whl
|
||||||
python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
|
|
||||||
|
|
||||||
# install README
|
# install README
|
||||||
install -Dm644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README.rst"
|
install -Dm644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README.rst"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user