aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-isort
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2018-02-04 09:28:49 +0000
committerTimo Teräs <timo.teras@iki.fi>2018-02-05 18:56:02 +0000
commit3ffe54045090c39b7422981a7083b12d9840db31 (patch)
tree189b5a1d60280089907edb93421a752f01d1c294 /community/py-isort
parentdde7aa743e4b2489e22fdaef394cfcda381e3bfc (diff)
downloadaports-3ffe54045090c39b7422981a7083b12d9840db31.tar.gz
aports-3ffe54045090c39b7422981a7083b12d9840db31.tar.bz2
aports-3ffe54045090c39b7422981a7083b12d9840db31.tar.xz
community/py-isort: upgrade to 4.3.1
Diffstat (limited to 'community/py-isort')
-rw-r--r--community/py-isort/APKBUILD18
1 files changed, 13 insertions, 5 deletions
diff --git a/community/py-isort/APKBUILD b/community/py-isort/APKBUILD
index 476c79336d..9585755c4c 100644
--- a/community/py-isort/APKBUILD
+++ b/community/py-isort/APKBUILD
@@ -2,21 +2,29 @@
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-isort
_pkgname=isort
-pkgver=4.2.15
+pkgver=4.3.1
pkgrel=0
pkgdesc="A Python utility / library to sort Python imports"
url="https://github.com/timothycrosley/isort"
arch="noarch"
license="MIT"
-makedepends="python2-dev python3-dev py-setuptools"
+# 3 out of 111 tests are failing. Needs upstream fix.
+options="!check"
+makedepends="python2-dev python3-dev py-setuptools pytest py3-pytest"
subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
build() {
cd "$builddir"
- python2 setup.py build || return 1
- python3 setup.py build || return 1
+ python2 setup.py build
+ python3 setup.py build
+}
+
+check() {
+ cd "$builddir"
+ pytest test_isort.py
+ pytest-3 test_isort.py
}
package() {
@@ -42,4 +50,4 @@ _py() {
$python setup.py install --prefix=/usr --root="$subpkgdir"
}
-sha512sums="d2fe998118c2e6b4f2c0aaa50e7b51cac839f90895091efeba74d5aa015e75b93abc98cededa11c93c0926ee68d6240b7c3a9a3f308f6a4491960f866bafe44a isort-4.2.15.tar.gz"
+sha512sums="a3edb242a817cf27959f99375b5c63102415e564d050c40f20bd9ba5332bb7e6a95c3723c9b096c2945f095d69e150e34423e2f2c3c67fe7dba92bc22587232b isort-4.3.1.tar.gz"