Jelle van der Waa pushed to branch main at Arch Linux / Packaging / Packages /
vit
Commits:
3507193c by Jelle van der Waa at 2024-11-08T16:35:03+01:00
Switch to PEP517 building
- - - - -
2 changed files:
- .SRCINFO
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -6,6 +6,9 @@ pkgbase = vit
arch = any
license = MIT
makedepends = python-setuptools
+ makedepends = python-build
+ makedepends = python-installer
+ makedepends = python-wheel
depends = task
depends = python
depends = python-urwid
=====================================
PKGBUILD
=====================================
@@ -9,14 +9,14 @@ url='https://github.com/vit-project/vit'
arch=('any')
license=('MIT')
depends=('task' 'python' 'python-urwid' 'python-tasklib')
-makedepends=('python-setuptools')
+makedepends=('python-setuptools' 'python-build' 'python-installer'
'python-wheel')
source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
sha256sums=('42f7f2d92d010ec86228179f4fe54395dce933ad2a8166218da5258fc5834fe4')
b2sums=('5d12a4504930fe4c1aeacd9dce5d38d765a400360a27fa4c8ef6346573c81d252ec73832f94f6fc4ae3f9e2d27ce44f77bdfc50934a4539f846bb97c9f9c6f56')
build() {
cd ${pkgname}-${pkgver}
- python setup.py build
+ python -m build --wheel --no-isolation
}
check() {
@@ -27,7 +27,7 @@ check() {
package() {
cd ${pkgname}-${pkgver}
- python setup.py install --root="${pkgdir}" -O1 --skip-build
+ python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm 644 scripts/bash/vit.bash_completion
"${pkgdir}/usr/share/bash-completion/completions/vit"
install -Dm 644 *.md -t "${pkgdir}/usr/share/doc/${pkgname}"
install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/vit/-/commit/3507193ca647d138aabe287ae2aab1348c89de8b
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/vit/-/commit/3507193ca647d138aabe287ae2aab1348c89de8b
You're receiving this email because of your account on gitlab.archlinux.org.