aboutsummaryrefslogtreecommitdiffstats
path: root/main/py3-more-itertools/APKBUILD
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-08-30 05:27:23 -0300
committerNatanael Copa <ncopa@alpinelinux.org>2019-09-18 10:22:29 +0000
commit37bb8a0707f3c2a56400fef38ba0b800cbb4f8df (patch)
treec15e20ae91f57a8d1ad8f5133f0cdeef34347dbe /main/py3-more-itertools/APKBUILD
parentebd35337c3fc419ea073ce37d7b4180fd88a8ff4 (diff)
downloadaports-37bb8a0707f3c2a56400fef38ba0b800cbb4f8df.tar.gz
aports-37bb8a0707f3c2a56400fef38ba0b800cbb4f8df.tar.bz2
aports-37bb8a0707f3c2a56400fef38ba0b800cbb4f8df.tar.xz
main/py3-more-itertools: upgrade to 7.2.0
Diffstat (limited to 'main/py3-more-itertools/APKBUILD')
-rw-r--r--main/py3-more-itertools/APKBUILD42
1 files changed, 11 insertions, 31 deletions
diff --git a/main/py3-more-itertools/APKBUILD b/main/py3-more-itertools/APKBUILD
index 8ac6a13ef2..f5db288d7b 100644
--- a/main/py3-more-itertools/APKBUILD
+++ b/main/py3-more-itertools/APKBUILD
@@ -1,53 +1,33 @@
# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
-pkgname=py-more-itertools
+pkgname=py3-more-itertools
_pkgname=more-itertools
-pkgver=5.0.0
+pkgver=7.2.0
pkgrel=0
pkgdesc="More routines for operating on iterables, beyond itertools."
-url="https://pypi.python.org/pypi/more-itertools"
+url="https://github.com/erikrose/more-itertools"
arch="noarch"
license="MIT"
-makedepends="python2-dev python3-dev py-setuptools"
-subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
-source="$_pkgname-$pkgver.tar.gz::https://github.com/erikrose/more-itertools/archive/$pkgver.tar.gz"
+depends="python3"
+makedepends="py3-setuptools"
+source="$_pkgname-$pkgver.tar.gz::https://github.com/erikrose/more-itertools/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
+replaces="py-more-itertools" # Backwards compatibility
+provides="py-more-itertools=$pkgver-r$pkgrel" # Backwards compatibility
+
build() {
cd "$builddir"
- python2 setup.py build
python3 setup.py build
}
check() {
cd "$builddir"
- python2 setup.py test
python3 setup.py test
}
package() {
- mkdir -p "$pkgdir"
-}
-
-_py() {
- local python="$1"
- pkgdesc="$pkgdesc ${python#python}"
- depends="$python"
- install_if="$pkgname=$pkgver-r$pkgrel $python"
-
- cd "$builddir"
- $python setup.py install --prefix=/usr --root="$subpkgdir"
-}
-
-_py2() {
- replaces="$pkgname"
- depends="py2-six"
- _py python2
-}
-
-_py3() {
- depends="py3-six"
- _py python3
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
}
-sha512sums="4d403d5f26d9ef39f84070b3237c4c4f0b55d55999ba3fadf3f60b1d8990c7fa9e5cac4dbdeb199238dc9eba88cc5bf97ec0b0144fbe2b0febd3be474854ea1b more-itertools-5.0.0.tar.gz"
+sha512sums="79d69c70de55170d1bd4fade50abc725baad75a2355bc94dddb9c860e6fb44e8c9f6270d4360307154e66da73befa71893a0d635291727711309faee62b1027d more-itertools-7.2.0.tar.gz"