Date: Sunday, October 9, 2022 @ 08:39:52 Author: grawlinson Revision: 1324473
upgpkg: python-more-itertools 8.14.0-1; new upstream release * New upstream release. * Update upstream URL. * Switch to git releases from github tarballs. * Remove makedepends: python-setuptools. * Run test suite. Modified: python-more-itertools/trunk/PKGBUILD ----------+ PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++---------- 1 file changed, 36 insertions(+), 10 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-10-09 08:05:32 UTC (rev 1324472) +++ PKGBUILD 2022-10-09 08:39:52 UTC (rev 1324473) @@ -1,28 +1,54 @@ +# Maintainer: George Rawlinson <[email protected]> # Maintainer: Kyle Keen <[email protected]> # Contributor: Germán Osella Massa <[email protected]> pkgname=python-more-itertools -pkgver=8.13.0 -pkgrel=2 +pkgver=8.14.0 +pkgrel=1 pkgdesc='More routines for operating on iterables, beyond itertools' arch=('any') -url='https://github.com/erikrose/more-itertools' -#url='https://pypi.python.org/pypi/more-itertools' +url='https://github.com/more-itertools/more-itertools' license=('MIT') depends=('python') -makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel' 'python-flit') -source=("https://files.pythonhosted.org/packages/source/m/more-itertools/more-itertools-$pkgver.tar.gz") -sha512sums=('2f3473cdd67ddcb2c658f60638b91a25c4ce9d9a92bbda5ca937dd4748857408bfe8dd9d4e699f53bd9f10d7b433db57e499bd28f184b8faa58b2004f2c92004') +makedepends=( + 'git' + 'python-build' + 'python-installer' + 'python-wheel' + 'python-flit-core' +) +_commit='e2f2d06366a33666c5e97194ad4d5d43e11b8dd9' +source=("$pkgname::git+$url#commit=$_commit") +b2sums=('SKIP') +pkgver() { + cd "$pkgname" + + # temporary workaround until this is resolved + # https://github.com/more-itertools/more-itertools/issues/648 + #git describe --tags | sed 's/^v//' + grep __version__ more_itertools/__init__.py | cut -d ' ' -f 3 | sed -e "s/'//g" +} + build() { - cd more-itertools-$pkgver + cd "$pkgname" + python -m build --wheel --no-isolation } +check() { + cd "$pkgname" + + python -m unittest +} + package() { - cd more-itertools-$pkgver + cd "$pkgname" + python -m installer --destdir="$pkgdir" dist/*.whl - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + # license + install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE } # vim:set ts=2 sw=2 et:
