diff options
author | Caleb Maclennan | 2023-05-03 21:57:36 +0300 |
---|---|---|
committer | Caleb Maclennan | 2023-05-03 21:57:36 +0300 |
commit | 85ef62270133b15e163caf76c264ef6a1c3a5f28 (patch) | |
tree | a4b055d50431f78df793e9dd725e1d9c9a01453d | |
parent | bd645ea40d93a9a1c10d75bfa0e4017649a13075 (diff) | |
download | aur-85ef62270133b15e163caf76c264ef6a1c3a5f28.tar.gz |
upgpkg: python-xmldiff 2.4-4
Rebuild for Python 3.11, normalize PEP517 build tooling
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 11 |
2 files changed, 10 insertions, 6 deletions
@@ -1,10 +1,13 @@ pkgbase = python-xmldiff pkgdesc = A libray and command line utility for diffing xml pkgver = 2.4 - pkgrel = 3 + pkgrel = 4 url = https://xmldiff.readthedocs.io arch = any license = BSD + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel makedepends = python-setuptools depends = python depends = python-lxml @@ -4,7 +4,7 @@ pkgname=python-xmldiff _pyname=${pkgname#python-} pkgver=2.4 -pkgrel=3 +pkgrel=4 pkgdesc='A libray and command line utility for diffing xml' arch=(any) url="https://$_pyname.readthedocs.io" @@ -12,23 +12,24 @@ license=(BSD) depends=(python python-lxml python-six) -makedepends=(python-setuptools) +makedepends=(python-{build,installer,wheel} + python-setuptools) _archive="$_pyname-$pkgver" source=("https://files.pythonhosted.org/packages/source/${_pyname::1}/$_pyname/$_archive.tar.gz") sha256sums=('05bea20ce1f2c9678683bcce0c3ba9981f87d92b709d190e018bcbf047eccf63') build() { cd "$_archive" - python setup.py build + python -m build -wn } check() { cd "$_archive" - python setup.py test + python -m unittest discover } package() { cd "$_archive" - python setup.py install --root="$pkgdir" --optimize=1 --skip-build + python -m installer -d "$pkgdir" dist/*.whl install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE.txt } |