aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-testtools
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-05-02 19:38:22 -0300
committerNatanael Copa <ncopa@alpinelinux.org>2019-05-11 07:12:59 +0000
commitfdbb6781ba9faf7eaa06b0b6a43aeaa42f96dc8f (patch)
tree5d638100e93df3717e605a8807f5dc009fdf5628 /testing/py-testtools
parent30d163e2ee0ecc1776b57a254b359184f480b25d (diff)
downloadaports-fdbb6781ba9faf7eaa06b0b6a43aeaa42f96dc8f.tar.bz2
aports-fdbb6781ba9faf7eaa06b0b6a43aeaa42f96dc8f.tar.xz
testing/py-testtools: modernize
- Add missing dependencies - Use modern style
Diffstat (limited to 'testing/py-testtools')
-rw-r--r--testing/py-testtools/APKBUILD21
1 files changed, 10 insertions, 11 deletions
diff --git a/testing/py-testtools/APKBUILD b/testing/py-testtools/APKBUILD
index e2d0e84afe..130fab1216 100644
--- a/testing/py-testtools/APKBUILD
+++ b/testing/py-testtools/APKBUILD
@@ -3,36 +3,35 @@
pkgname=py-testtools
_pkgname="testtools"
pkgver=2.3.0
-pkgrel=1
+pkgrel=2
pkgdesc="Extensions to the Python standard library unit testing framework"
url="https://pypi.python.org/pypi/testtools"
arch="noarch"
license="MIT"
-depends="python"
-makedepends="python2-dev python3-dev py-setuptools"
+depends="python py-pbr py-setuptools py-fixtures py-extras py-six py-traceback2
+ py-mimeparse"
+makedepends="py-setuptools py3-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
-check() {
- cd "$builddir"
- python2 setup.py check
- python3 setup.py check
-}
-
build() {
- cd "$builddir"
python2 setup.py build
python3 setup.py build
}
+check() {
+ python2 setup.py check
+ python3 setup.py check
+}
+
package() {
mkdir -p "$pkgdir"
}
_py2() {
replaces="$pkgname"
- depends="${depends//py-/py2-}" ## remove if there are no common Python dependencies
+ depends="${depends//py-/py2-} py2-unittest2" ## remove if there are no common Python dependencies
_py python2
}