aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-urlobject/APKBUILD
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2017-11-19 12:31:56 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-11-20 15:58:19 +0000
commitbf14e7baab482cca83b66227ff0414655826ecca (patch)
tree56b375913120f8aa89eafea9ea3dce46946c7f1a /testing/py-urlobject/APKBUILD
parentf3d9ca1d70da8c5d98dbb7660ebc2dc7215e8a2a (diff)
downloadaports-bf14e7baab482cca83b66227ff0414655826ecca.tar.bz2
aports-bf14e7baab482cca83b66227ff0414655826ecca.tar.xz
testing/py-urlobject: upgrade to 2.4.3
Diffstat (limited to 'testing/py-urlobject/APKBUILD')
-rw-r--r--testing/py-urlobject/APKBUILD61
1 files changed, 37 insertions, 24 deletions
diff --git a/testing/py-urlobject/APKBUILD b/testing/py-urlobject/APKBUILD
index 1d3bc48da2..84e3d47215 100644
--- a/testing/py-urlobject/APKBUILD
+++ b/testing/py-urlobject/APKBUILD
@@ -2,40 +2,53 @@
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-urlobject
_pkgname=URLObject
-pkgver=2.4.0
+pkgver=2.4.3
pkgrel=0
pkgdesc="A Python utility class for manipulating URLs"
url="https://github.com/dperezrada/html2data"
arch="noarch"
license="Public Domain"
-depends="python2"
-depends_dev=""
-makedepends="python2-dev py-setuptools"
-install=""
-subpackages=""
+options="!check"
+depends=""
+makedepends="python2-dev python3-dev py-setuptools"
+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
-prepare() {
- local i
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
+builddir="$srcdir"/$_pkgname-$pkgver
build() {
- cd "$_builddir"
- python2 setup.py build || return 1
+ cd "$builddir"
+ python2 setup.py build
+ python3 setup.py build
}
+# Tests are not included at the moment
+#check() {
+# cd "$builddir"
+# nosetests -w test
+# nosetests-3.6 -w test
+#}
+
package() {
- cd "$_builddir"
- python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
+ mkdir -p "$pkgdir"
+}
+
+_py2() {
+ replaces="$pkgname"
+ _py python2
+}
+
+_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"
}
-md5sums="2ed819738a9f0a3051f31dc9924e3065 URLObject-2.4.0.tar.gz"
-sha256sums="f51272b12846db98af530b0a64f6593d2b1e8405f0aa580285b37ce8009b8d9c URLObject-2.4.0.tar.gz"
-sha512sums="1334c8d8dbb93f50fb6672ae5c2e1dbb8c880af65c18c96c7bc65bb46ae894ab0696d36236036c1e4434a6e75b692ecd0b37055ef9b55fb50ffbaf13197b1701 URLObject-2.4.0.tar.gz"
+sha512sums="a557731f4da8a2aaf8f7e3f7219b48cf66cf6a5706a0ba6978e9eeb310d8246baec6a6c9d798e31ac1b3874fd0d93bb88ea359a87390f7b935ba5472994e1bbe URLObject-2.4.3.tar.gz"