aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2019-07-01 16:56:33 +0300
committerprspkt <prspkt@protonmail.com>2019-07-01 16:56:37 +0300
commit3cd0e54f386ace5c92f69da4851cade052f0c695 (patch)
tree00d2bf94499b34da5046558037a945cbca771960
parent30a843e1acfbeb57518b207cc90d351ae11e1a8a (diff)
downloadaports-3cd0e54f386ace5c92f69da4851cade052f0c695.tar.bz2
aports-3cd0e54f386ace5c92f69da4851cade052f0c695.tar.xz
testing/py-jmespath: drop python2
-rw-r--r--testing/py3-jmespath/APKBUILD (renamed from testing/py-jmespath/APKBUILD)34
1 files changed, 8 insertions, 26 deletions
diff --git a/testing/py-jmespath/APKBUILD b/testing/py3-jmespath/APKBUILD
index 8c74cd92d0..588f77ab89 100644
--- a/testing/py-jmespath/APKBUILD
+++ b/testing/py3-jmespath/APKBUILD
@@ -1,48 +1,30 @@
# Maintainer: Valery Kartel <valery.kartel@gmail.com>
# Contributor: Valery Kartel <valery.kartel@gmail.com>
-pkgname=py-jmespath
+pkgname=py3-jmespath
pkgver=0.9.3
pkgrel=1
-_pkgreal=${pkgname#py-}
+_pkgreal=${pkgname#py3-}
pkgdesc="JMESPath is a query language for JSON"
url="http://jmespath.org"
arch="noarch"
license="MIT"
options="!check"
-makedepends="python2-dev python3-dev py-setuptools"
-subpackages="py3-$_pkgreal:_py3 py2-$_pkgreal:_py2"
+depends="python3"
+makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgreal:0:1}/$_pkgreal/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
+replaces=py-jmespath # Backwards compatibility
+provides=py-jmespath=$pkgver-r$pkgrel # Backwards compatibility
+
build() {
cd "$builddir"
- python2 setup.py build || return 1
python3 setup.py build || return 1
}
package() {
- mkdir -p "$pkgdir"
-}
-
-_py2() {
- replaces="$pkgname"
- depends="${depends//py-/py2-}"
- _py python2
-}
-
-_py3() {
- depends="${depends//py-/py3-}"
- _py python3
-}
-
-_py() {
- local python="$1"
- pkgdesc="$pkgdesc (for $python)"
- depends="$depends $python"
- install_if="$pkgname=$pkgver-r$pkgrel $python"
-
cd "$builddir"
- $python setup.py install --prefix=/usr --root="$subpkgdir"
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="eeab444df7a29c0bc64bd8064c942a5b02772d39d6d262dbef1d43ebaf7e4eb97c34fb1df3a47c6da011a632ec5f9b1ffe62ac51929e8d412368b907ebbb85a7 jmespath-0.9.3.tar.gz"