aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2019-07-04 23:13:18 +0300
committerprspkt <prspkt@protonmail.com>2019-07-04 23:24:19 +0300
commit32cfcf4b6037ddb0e9a454ae1fab5e1ed662fd60 (patch)
treeb4f7809d95da669c4d9dee9ede1b28615e56f4fb /testing
parent3a29380de54e41f23c2c083c6e7f11ea9c7ed845 (diff)
downloadaports-32cfcf4b6037ddb0e9a454ae1fab5e1ed662fd60.tar.bz2
aports-32cfcf4b6037ddb0e9a454ae1fab5e1ed662fd60.tar.xz
testing/py-radix: drop python2
Diffstat (limited to 'testing')
-rw-r--r--testing/py3-py-radix/APKBUILD (renamed from testing/py-radix/APKBUILD)18
1 files changed, 11 insertions, 7 deletions
diff --git a/testing/py-radix/APKBUILD b/testing/py3-py-radix/APKBUILD
index 5ab38a3dbf..0576bda49a 100644
--- a/testing/py-radix/APKBUILD
+++ b/testing/py3-py-radix/APKBUILD
@@ -1,33 +1,37 @@
# Contributor:
# Maintainer: Kristóf Jakab <jakab.kristof@balasys.hu>
-pkgname=py-radix
+pkgname=py3-py-radix
+_pkgname=py-radix
pkgver=0.10.0
pkgrel=1
pkgdesc="An implementation of a radix tree for Python"
url="https://github.com/mjschultz/py-radix"
arch="all"
license="BSD"
-depends="python2"
-makedepends="python2-dev py2-setuptools"
-checkdepends="py2-coverage py2-nose"
+depends="python3"
+makedepends="py3-setuptools python3-dev"
+checkdepends="py3-coverage py3-nose"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/mjschultz/py-radix/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"
+replaces=py-radix # Backwards compatibility
+provides=py-radix=$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() {
cd "$builddir"
- python2 setup.py install --prefix=/usr --root="$pkgdir"
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}