[arch-commits] Commit in python-isort/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sat May 25 18:57:01 UTC 2019
Date: Saturday, May 25, 2019 @ 18:57:01
Author: felixonmars
Revision: 354295
upgpkg: python-isort 4.3.20-1
Modified:
python-isort/trunk/PKGBUILD
----------+
PKGBUILD | 47 +++++++++++++----------------------------------
1 file changed, 13 insertions(+), 34 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-05-25 16:18:36 UTC (rev 354294)
+++ PKGBUILD 2019-05-25 18:57:01 UTC (rev 354295)
@@ -1,53 +1,32 @@
# Maintainer: Felix Yan <felixonmars at archlinux.org>
# Contributor: Yaron de Leeuw <me at jarondl.net>
-pkgbase=python-isort
-pkgname=('python-isort' 'python2-isort')
-pkgver=4.3.4
-pkgrel=2
+pkgname=python-isort
+pkgver=4.3.20
+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' 'python2-futures')
-checkdepends=('python-pytest' 'python2-pytest' 'python-mock' 'python2-mock')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/timothycrosley/isort/archive/$pkgver.tar.gz")
-sha512sums=('cc9254c288e479a05cc20c29c9be6fa368a46e85f8eb0a22238ee3e57004a75999d35d2a736ad0a4ddc7d7c7efcc30fb97bfd16fcd0adb44d3b937dd935588b7')
+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=('03cca362a5c70b27f0893c00abdd65b39d35dfbd034b24a60703d222f0f21f8de5f650f2fb85adf6f37b1b33bfe02bf1b93d486000af7c6f45302a0d3c355cfb')
-prepare() {
- cp -a isort-$pkgver{,-py2}
-}
-
build() {
- cd "$srcdir"/isort-$pkgver
+ cd isort-$pkgver
python setup.py build
-
- cd "$srcdir"/isort-$pkgver-py2
- python2 setup.py build
}
check() {
- cd "$srcdir"/isort-$pkgver
- python setup.py test
-
- cd "$srcdir"/isort-$pkgver-py2
- python2 setup.py test
+ cd isort-$pkgver
+ 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
}
-package_python-isort() {
- depends=('python-setuptools')
-
+package() {
cd isort-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
-
-package_python2-isort() {
- depends=('python2-setuptools' 'python2-futures')
-
- 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