diff options
author | Luis Martinez | 2022-04-01 14:25:56 -0500 |
---|---|---|
committer | Luis Martinez | 2022-04-01 14:25:56 -0500 |
commit | 93eca967986e1d0ebd1bc8c69e138918396f2468 (patch) | |
tree | f11918fd5275ce896e9937667d387c695ad2411b | |
parent | e0eba62e999b04ec6eb2e5c0dd775871c3d30a84 (diff) | |
download | aur-93eca967986e1d0ebd1bc8c69e138918396f2468.tar.gz |
update to 3.7.6
* PKGBUILD rewrite
* packaging updated against latest Python guidelines
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 46 |
2 files changed, 41 insertions, 19 deletions
@@ -1,14 +1,16 @@ pkgbase = python-configurationutil - pkgdesc = A collection of state machine utilities - pkgver = 3.7.2 + pkgdesc = Collection of state machine utilities + pkgver = 3.7.6 pkgrel = 1 - url = https://bitbucket.org/daycoder/configurationutil + url = https://pypi.org/project/configurationutil arch = any license = custom:PSF + makedepends = python-build + makedepends = python-installer makedepends = python-setuptools + makedepends = python-wheel depends = python-jsonschema - source = https://pypi.io/packages/source/c/configurationutil/configurationutil-3.7.2.tar.gz - sha512sums = SKIP + source = python-configurationutil-3.7.6.tar.gz::https://files.pythonhosted.org/packages/source/c/configurationutil/configurationutil-3.7.6.tar.gz + sha256sums = a413f35ea4a6d0530b778d101f00065eab16a68216ecb930699a950ded8a8ea0 pkgname = python-configurationutil - @@ -1,22 +1,42 @@ +# Maintainer: Luis Martinez <luis dot martinez at disroot dot org> + pkgname=python-configurationutil -pkgver=3.7.2 +_name=configurationutil +pkgver=3.7.6 pkgrel=1 -pkgdesc="A collection of state machine utilities" -arch=(any) -url="https://bitbucket.org/daycoder/configurationutil" +pkgdesc="Collection of state machine utilities" +arch=('any') +url='https://pypi.org/project/configurationutil' license=('custom:PSF') -makedepends=('python-setuptools') depends=('python-jsonschema') -source=("https://pypi.io/packages/source/c/configurationutil/configurationutil-$pkgver.tar.gz") -sha512sums=('SKIP') +makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel') +# checkdepends=('python-logging-helper' 'python-classutils' 'python-timingsutil') +source=("$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/c/$_name/$_name-$pkgver.tar.gz") +sha256sums=('a413f35ea4a6d0530b778d101f00065eab16a68216ecb930699a950ded8a8ea0') + +prepare() { + cd "$_name-$pkgver" + sed -i "/packages=/s/()/(exclude=['*unittests*'])/" setup.py +} -check() { - # Not included in release tarball - cd configurationutil-$pkgver - # python test_configurationutil.py +build() { + cd "$_name-$pkgver" + python -m build --wheel --no-isolation } +## FIXME: tests missing test data +# check() { +# cd "$_name-$pkgver" +# python -m unittest discover +# } + package() { - cd configurationutil-$pkgver - python setup.py install --root="$pkgdir/" --optimize=1 + cd "$_name-$pkgver" + PYTHONHASHSEED=0 python -m installer --destdir="$pkgdir/" dist/*.whl + + local _site="$(python -c 'import site; print(site.getsitepackages()[0])')" + install -d "$pkgdir/usr/share/licenses/$pkgname/" + ln -s \ + "$_site/$_name-$pkgver.dist-info/LICENSE.txt" \ + "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } |