diff options
| author | Leo <thinkabit.ukim@gmail.com> | 2019-05-29 22:33:08 -0300 |
|---|---|---|
| committer | Leo <thinkabit.ukim@gmail.com> | 2019-06-18 14:20:03 -0300 |
| commit | 075f1f96e668af3f38bb9744f268ce3b5c5b15e3 (patch) | |
| tree | 0f9407cd9d587bd2010b66d54ff4dfe087749db2 /testing/py-hotqueue | |
| parent | 5d9362340f29f934fd34de643c5aa863bb26289f (diff) | |
| download | aports-075f1f96e668af3f38bb9744f268ce3b5c5b15e3.tar.bz2 aports-075f1f96e668af3f38bb9744f268ce3b5c5b15e3.tar.xz | |
testing/py-hotqueue: upgrade to 0.2.8
Diffstat (limited to 'testing/py-hotqueue')
| -rw-r--r-- | testing/py-hotqueue/APKBUILD | 57 |
1 files changed, 34 insertions, 23 deletions
diff --git a/testing/py-hotqueue/APKBUILD b/testing/py-hotqueue/APKBUILD index 83a1ecb9d8..6766349a17 100644 --- a/testing/py-hotqueue/APKBUILD +++ b/testing/py-hotqueue/APKBUILD @@ -2,40 +2,51 @@ # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> pkgname=py-hotqueue _pkgname=hotqueue -pkgver=0.2.7 +pkgver=0.2.8 pkgrel=0 pkgdesc="A Python library that allows to use Redis as a message queue" +options="!check" # Require running instance of redis server url="http://github.com/richardhenry/hotqueue" arch="noarch !armv7" # urllib2.HTTPError: HTTP Error 403: SSL is required license="MIT" -depends="python2" -depends_dev="" -makedepends="python2-dev py-setuptools" -install="" -subpackages="" +depends="py-redis" +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 -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 + python2 setup.py build + python3 setup.py build +} + +check() { + python2 setup.py test + python3 setup.py 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="13c80ac6ec08fd5fbc9bb9c1818d95b9 hotqueue-0.2.7.tar.gz" -sha256sums="978729391b91b9a29135fbc60b532466947bc4fb2e3ea26e88ca1574a582398f hotqueue-0.2.7.tar.gz" -sha512sums="9ff8a11b4c029544d0f842feaf423a209d464daa12852d2186c2723406659040d24c556d44c0e903aebc464b02b7cdeb05d373083aa0bcedc237e6cc5719b573 hotqueue-0.2.7.tar.gz" +sha512sums="89a726aa970de5f0a3c3551e69b3efad00d6b795b59cfe219a35080be4be52b894637899cd1677572419180d8aa918a64b3d227371d2c409aa8da0e15876accf hotqueue-0.2.8.tar.gz" |
