[arch-commits] Commit in python-isort/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Thu Aug 29 02:00:54 UTC 2019
Date: Thursday, August 29, 2019 @ 02:00:53
Author: felixonmars
Revision: 361346
upgpkg: python-isort 4.3.21.2-1
Modified:
python-isort/trunk/PKGBUILD
----------+
PKGBUILD | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-08-28 20:28:45 UTC (rev 361345)
+++ PKGBUILD 2019-08-29 02:00:53 UTC (rev 361346)
@@ -2,7 +2,8 @@
# Contributor: Yaron de Leeuw <me at jarondl.net>
pkgname=python-isort
-pkgver=4.3.21
+pkgver=4.3.21.2
+_tag=4.3.21-2
pkgrel=1
pkgdesc="A Python utility / library to sort Python imports."
arch=('any')
@@ -11,22 +12,22 @@
depends=('python-setuptools')
checkdepends=('python-pytest' 'python-mock' 'python-pip' 'python-pip-api' 'pylama' 'python-pipreqs'
'python-requirementslib')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/timothycrosley/isort/archive/$pkgver.tar.gz")
-sha512sums=('a393956a997687996b025c2a37c655efebdd988c52f6d6914db79613a5e0febbf92b0c6007c6db07af079db78e4c235cad0578089b565cb474cdfbbac9031e6d')
+source=("$pkgname-$_tag.tar.gz::https://github.com/timothycrosley/isort/archive/$_tag.tar.gz")
+sha512sums=('fc2aa00c87196864864d2516b8be7acdedcf40d71d1931510e4b878dbd2b6da0b579661b50221f03f4aa5560c8bf23d5e1e10a2694d2b741ca09a92e40a4c687')
build() {
- cd isort-$pkgver
+ cd isort-$_tag
python setup.py build
}
check() {
- cd isort-$pkgver
+ cd isort-$_tag
python setup.py install --root="$PWD/tmp_install" --optimize=1
PYTHONPATH="$PWD/tmp_install/usr/lib/python3.7/site-packages" PATH="$PWD/tmp_install/usr/bin:$PATH" pytest || warning "Tests failed"
}
package() {
- cd isort-$pkgver
+ cd isort-$_tag
python setup.py install --root="$pkgdir" --optimize=1
install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
More information about the arch-commits
mailing list