[arch-commits] Commit in python-isort/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sun Jun 4 02:36:54 UTC 2017
Date: Sunday, June 4, 2017 @ 02:36:53
Author: felixonmars
Revision: 297760
upgpkg: python-isort 4.2.13-1
Modified:
python-isort/trunk/PKGBUILD
----------+
PKGBUILD | 28 ++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-06-04 02:24:30 UTC (rev 297759)
+++ PKGBUILD 2017-06-04 02:36:53 UTC (rev 297760)
@@ -4,34 +4,34 @@
pkgbase=python-isort
pkgname=('python-isort' 'python2-isort')
-pkgver=4.2.5
-pkgrel=2
+pkgver=4.2.13
+pkgrel=1
pkgdesc="A Python utility / library to sort Python imports."
arch=('any')
url="https://github.com/timothycrosley/isort"
license=('MIT')
-makedepends=('python-setuptools' 'python2-setuptools' 'git')
+makedepends=('python-setuptools' 'python2-setuptools')
checkdepends=('python-pytest' 'python2-pytest' 'python-mock' 'python2-mock')
-source=("git+https://github.com/timothycrosley/isort.git#tag=$pkgver")
-sha512sums=('SKIP')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/timothycrosley/isort/archive/$pkgver.tar.gz")
+sha512sums=('e59140fae9a700a10107125808e1d158120c5ef9b713b8ca748d1bc7b165e4586e2beee7c7a4aea29bb1d7731a437e547c0ab926ad6a349718205305816acdf2')
prepare() {
- cp -a isort{,-py2}
+ cp -a isort-$pkgver{,-py2}
}
build() {
- cd "$srcdir"/isort
+ cd "$srcdir"/isort-$pkgver
python setup.py build
- cd "$srcdir"/isort-py2
+ cd "$srcdir"/isort-$pkgver-py2
python2 setup.py build
}
check() {
- cd "$srcdir"/isort
+ cd "$srcdir"/isort-$pkgver
python setup.py test
- cd "$srcdir"/isort-py2
+ cd "$srcdir"/isort-$pkgver-py2
python2 setup.py test
}
@@ -38,8 +38,8 @@
package_python-isort() {
depends=('python-setuptools')
- cd isort
- python setup.py install --root="$pkgdir/" --optimize=1
+ cd isort-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
@@ -46,8 +46,8 @@
package_python2-isort() {
depends=('python2-setuptools')
- cd isort-py2
- python2 setup.py install --root="$pkgdir/" --optimize=1
+ cd isort-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
mv "$pkgdir"/usr/bin/isort{,2}
More information about the arch-commits
mailing list