Move from setup.py to pyproject.toml

This commit is contained in:
Fabrice Mouhartem 2023-12-28 21:02:07 +01:00
parent 5613b1b470
commit 3e1b3f0d5c

View File

@ -4,7 +4,7 @@
# (https://aur.archlinux.org/packages/fanficfare-git) # (https://aur.archlinux.org/packages/fanficfare-git)
_pkgname=kalamine _pkgname=kalamine
pkgname=kalamine-git pkgname=kalamine-git
pkgver=r75.56b4e79 pkgver=r76.489249f
pkgrel=1 pkgrel=1
pkgdesc="A text-based, cross-platform Keyboard Layout Maker." pkgdesc="A text-based, cross-platform Keyboard Layout Maker."
arch=('any') arch=('any')
@ -35,11 +35,11 @@ pkgver() {
build() { build() {
cd "$srcdir/${_pkgname}" cd "$srcdir/${_pkgname}"
python setup.py build python -m build
} }
package() { package() {
cd "$srcdir/${_pkgname}" cd "$srcdir/${_pkgname}"
python setup.py install --root="$pkgdir" --optimize=1 python -m installer --destdir="${pkgdir}" dist/*.whl
} }