aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-08-27 02:53:20 -0300
committerLeo <thinkabit.ukim@gmail.com>2019-08-27 02:53:20 -0300
commit1f9e3e4c6a1a72f315e41c4c96094d1983dbc12e (patch)
treeee6bc655d641b82dd2aba7324e7708e658d51ee7
parentbb13223a29ec1831abfdbd219dc4461ce2d59476 (diff)
downloadaports-1f9e3e4c6a1a72f315e41c4c96094d1983dbc12e.tar.bz2
aports-1f9e3e4c6a1a72f315e41c4c96094d1983dbc12e.tar.xz
testing/py3-kombu: drop py2
-rw-r--r--testing/py3-kombu/APKBUILD47
1 files changed, 6 insertions, 41 deletions
diff --git a/testing/py3-kombu/APKBUILD b/testing/py3-kombu/APKBUILD
index a1c9b07bc7..56c3d8f91b 100644
--- a/testing/py3-kombu/APKBUILD
+++ b/testing/py3-kombu/APKBUILD
@@ -1,68 +1,33 @@
# Contributor: Stefan Wagner <stw@bit-strickerei.de>
# Maintainer: Drew DeVault <sir@cmpwn.com>
-pkgname=py-kombu
+pkgname=py3-kombu
_pyname=kombu
pkgver=4.5.0
pkgrel=1
pkgdesc="a message queue abstraction layer"
url="https://pypi.python.org/pypi/kombu/"
arch="noarch"
-license="BSD"
-_py2_deps="py2-amqp py2-vine"
-_py3_deps="py3-amqp py3-vine"
-makedepends="
- $_py2_deps $_py3_deps python2-dev python3-dev py2-setuptools py3-setuptools
-"
-checkdepends="
- py2-pyro4 py3-pyro4 py2-case py3-case py2-nose py3-nose py2-mock py3-mock
- py2-tz py3-tz pytest py3-pytest
-"
-subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
+license="BSD-3-Clause"
+depends="py3-amqp py3-vine"
+makedepends="py3-setuptools"
+checkdepends="py3-pyro4 py3-case py3-nose py3-mock py3-tz py3-pytest"
_pypiprefix="${_pyname%${_pyname#?}}"
source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"
prepare() {
- cd "$builddir"
sed -i requirements/test.txt -e 's/pytest-sugar//g'
- cp -r "$builddir" "$builddir"-py2
}
build() {
- cd "$builddir"
python3 setup.py build
- cd "$builddir"-py2
- python2 setup.py build
}
check() {
- cd "$builddir"
python3 setup.py test
- cd "$builddir"-py2
- python2 setup.py test
}
package() {
- mkdir -p "$pkgdir"
-}
-
-_py2() {
- depends="$_py2_deps"
- cd "$builddir"-py2
- _py python2
-}
-
-_py3() {
- depends="$_py3_deps"
- cd "$builddir"
- _py python3
-}
-
-_py() {
- _python="$1"
- pkgdesc="$pkgdesc (for $_python)"
- depends="$depends $_python"
- install_if="$pkgname=$pkgver-r$pkgrel $_python"
- $_python setup.py install --prefix=/usr --root="$subpkgdir"
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="028ae2f65da52e3192791490cfc3d5298426c774891bac7b8b81f0d36f61be3c171b72f344c6c59be5820aca8c9c61b6f695ac3f5e181c1fd98a1d0e9fa7a9ae kombu-4.5.0.tar.gz"