diff options
author | Luis Martinez | 2021-10-06 21:09:29 -0500 |
---|---|---|
committer | Luis Martinez | 2021-10-06 21:09:29 -0500 |
commit | 126ab4e9d153899daf11c005ec7f460e8f0d1ea8 (patch) | |
tree | a084730279127ca43630c5704fc95ad51a44ac7d | |
parent | 357cb83415c4ae4513f1b373904718762168104a (diff) | |
download | aur-126ab4e9d153899daf11c005ec7f460e8f0d1ea8.tar.gz |
update to 1.9
* package rewritten to comply with Python packaging guidelines
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 32 |
2 files changed, 24 insertions, 20 deletions
@@ -1,15 +1,13 @@ -# Generated by mksrcinfo v8 -# Tue Feb 2 21:24:24 UTC 2016 pkgbase = python-logging_tree pkgdesc = Introspect and display the logger tree inside "logging" - pkgver = 1.7 + pkgver = 1.9 pkgrel = 1 - url = http://pypi.python.org/pypi/logging_tree/ + url = https://github.com/brandon-rhodes/logging_tree arch = any license = BSD + makedepends = python-setuptools depends = python - source = https://pypi.python.org/packages/source/l/logging_tree/logging_tree-1.7.tar.gz - md5sums = 21d8a0408402022af416dee0e1101a67 + source = python-logging_tree-1.9.tar.gz::https://github.com/brandon-rhodes/logging_tree/archive/1.9.tar.gz + sha256sums = 3e15b37911efcdbc7195199aa20a463fd37a7385251a90600b5df1eb28569c35 pkgname = python-logging_tree - @@ -1,24 +1,30 @@ -# Maintainer: Antony Lee <anntzer dot lee at gmail dot com> +# Maintainer: Luis Martinez <luis dot martinez at disroot dot org> +# Contributor: Antony Lee <anntzer dot lee at gmail dot com> -_pyname=logging_tree -pkgname=python-$_pyname -pkgver=1.7 +pkgname=python-logging_tree +pkgver=1.9 pkgrel=1 pkgdesc='Introspect and display the logger tree inside "logging"' -url="http://pypi.python.org/pypi/$_pyname/" -depends=('python') +url='https://github.com/brandon-rhodes/logging_tree' license=('BSD') arch=('any') -source=("https://pypi.python.org/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz") -md5sums=('21d8a0408402022af416dee0e1101a67') +depends=('python') +makedepends=('python-setuptools') +source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz") +sha256sums=('3e15b37911efcdbc7195199aa20a463fd37a7385251a90600b5df1eb28569c35') build() { - cd $srcdir/$_pyname-$pkgver - python setup.py build + cd "logging_tree-$pkgver" + python setup.py build +} + +check() { + cd "logging_tree-$pkgver" + python -m unittest discover logging_tree } package() { - cd $srcdir/$_pyname-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 - install -D -m644 COPYRIGHT "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + cd "logging_tree-$pkgver" + PYTHONHASHSEED=0 python setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -Dm 644 COPYRIGHT "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } |