[arch-commits] Commit in python-dulwich/trunk (PKGBUILD)
Daniel M. Capella
polyzen at gemini.archlinux.org
Sun Sep 4 18:52:55 UTC 2022
Date: Sunday, September 4, 2022 @ 18:52:54
Author: polyzen
Revision: 1292873
upgpkg: python-dulwich 0.20.45-2: Use PEP 517
Modified:
python-dulwich/trunk/PKGBUILD
----------+
PKGBUILD | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-09-04 18:49:23 UTC (rev 1292872)
+++ PKGBUILD 2022-09-04 18:52:54 UTC (rev 1292873)
@@ -4,13 +4,14 @@
_name=dulwich
pkgname=python-dulwich
pkgver=0.20.45
-pkgrel=1
+pkgrel=2
pkgdesc='Pure-Python implementation of the Git file formats and protocols'
arch=('x86_64')
url=https://www.dulwich.io
license=('GPL')
depends=('python-certifi' 'python-urllib3')
-makedepends=('python-setuptools')
+makedepends=('python-build' 'python-installer' 'python-setuptools'
+ 'python-wheel')
checkdepends=('python-gpgme' 'python-paramiko')
optdepends=('python-fastimport: for fast-import support'
'python-gpgme: for PGP signature support'
@@ -24,17 +25,17 @@
build() {
cd $_name-$pkgver
- python setup.py build
+ python -m build --wheel --skip-dependency-check --no-isolation
}
check() {
cd $_name-$pkgver
python -m venv --system-site-packages test-env
- test-env/bin/python setup.py install --optimize=1 --skip-build
+ test-env/bin/python -m installer dist/*.whl
test-env/bin/python -m unittest dulwich.tests.test_suite
}
package() {
cd $_name-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ python -m installer --destdir="$pkgdir" dist/*.whl
}
More information about the arch-commits
mailing list