diff options
author | Blair Bonnett | 2022-10-03 12:35:15 +0200 |
---|---|---|
committer | Blair Bonnett | 2022-10-03 12:35:15 +0200 |
commit | be3c14b251f43c10b9c59fd1a7625e28c024d5e4 (patch) | |
tree | 19712ed875846a8890205341393be452fd243d99 | |
parent | d05fd8b2f1b4995e392fa6e89d6c50b4a0b92072 (diff) | |
download | aur-be3c14b251f43c10b9c59fd1a7625e28c024d5e4.tar.gz |
Switch to PEP517 build; enable tests; correct arch to 'any'; tidy dependencies.
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | PKGBUILD | 46 |
3 files changed, 35 insertions, 37 deletions
@@ -1,21 +1,17 @@ pkgbase = python-urwid_readline pkgdesc = Text input widget for urwid that supports readline shortcuts pkgver = 0.13 - pkgrel = 1 + pkgrel = 2 url = https://github.com/rr-/urwid_readline - arch = i686 - arch = x86_64 - arch = arm - arch = armv7h - arch = armv6h - arch = aarch64 - license = mit - makedepends = cython + arch = any + license = MIT + checkdepends = python-pytest + makedepends = python-build + makedepends = python-installer makedepends = python-setuptools - depends = python + makedepends = python-wheel depends = python-urwid - source = https://github.com/rr-/urwid_readline/archive/0.13.tar.gz + source = urwid_readline-0.13.tar.gz::https://github.com/rr-/urwid_readline/archive/0.13.tar.gz sha256sums = 51516c635a376c93a67bc6d28a4639614e5af23dc44a540a266ac2a2053f470c pkgname = python-urwid_readline - diff --git a/.gitignore b/.gitignore index dd38fa22d95f..0860ab2def91 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,5 @@ -*.tar* +src/ +pkg/ +urwid_readline-*.tar.gz +python-urwid_readline-*.pkg.tar* +*.log @@ -1,33 +1,31 @@ -# Maintainer: Anty0 <anty150 at gmail dot com> +# Maintainer: Blair Bonnett <blair dot bonnett at gmail dot com> +# Contributor: Anty0 <anty150 at gmail dot com> - -# Helper variables for updaurpkg (https://aur.archlinux.org/packages/updaurpkg-git) -_upstreamver='0.13' -_upstreamver_regex='^[0-9]+\.[0-9]+$' -_source_type='github-tags' -_repo='rr-/urwid_readline' - - -pkgname='python-urwid_readline' -_pkgname='urwid_readline' -pkgver="${_upstreamver}" -pkgrel=1 +pkgname=python-urwid_readline +pkgver=0.13 +pkgrel=2 pkgdesc="Text input widget for urwid that supports readline shortcuts" -url="https://github.com/${_repo}" -depends=('python' 'python-urwid') -makedepends=('cython' 'python-setuptools') -license=('mit') -arch=('i686' 'x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64') -source=("${url}/archive/${pkgver}.tar.gz") +url="https://github.com/rr-/urwid_readline" +depends=('python-urwid') +makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel') +checkdepends=('python-pytest') +license=('MIT') +arch=('any') +source=("urwid_readline-$pkgver.tar.gz::${url}/archive/${pkgver}.tar.gz") sha256sums=('51516c635a376c93a67bc6d28a4639614e5af23dc44a540a266ac2a2053f470c') build() { - cd "${srcdir}/${_pkgname}-${pkgver}/" - python setup.py build_ext --inplace + cd "urwid_readline-$pkgver" + python -m build --wheel --no-isolation +} + +check() { + cd "urwid_readline-$pkgver" + pytest -v } package() { - cd "${srcdir}/${_pkgname}-${pkgver}/" - python setup.py install --root="${pkgdir}" - install -D -m644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md" + cd "urwid_readline-$pkgver" + python -m installer --destdir="$pkgdir" dist/*.whl + install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE } |