diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-09-07 13:52:16 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-09-07 13:54:30 -0300 |
commit | 83782873554e640dd12d613415df7b15282680d3 (patch) | |
tree | 5876480cb7c3eadefd43aab3850b8865c766c558 /testing/py3-rabbit | |
parent | b359a2e0b163b0f737efa37e7786f79af8cf8a1b (diff) | |
download | aports-83782873554e640dd12d613415df7b15282680d3.tar.bz2 aports-83782873554e640dd12d613415df7b15282680d3.tar.xz |
testing/py3-rabbit: drop py2
Diffstat (limited to 'testing/py3-rabbit')
-rw-r--r-- | testing/py3-rabbit/APKBUILD | 35 |
1 files changed, 11 insertions, 24 deletions
diff --git a/testing/py3-rabbit/APKBUILD b/testing/py3-rabbit/APKBUILD index d713e0f6dd..333166a62a 100644 --- a/testing/py3-rabbit/APKBUILD +++ b/testing/py3-rabbit/APKBUILD @@ -1,41 +1,28 @@ # Contributor: Fabian Affolter <fabian@affolter-engineering.ch> # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> -pkgname=py-rabbit +pkgname=py3-rabbit _pkgname=pyrabbit pkgver=1.1.0 -pkgrel=0 -pkgdesc="A Pythonic interface to the RabbitMQ Management HTTP API" +pkgrel=1 +pkgdesc="Pythonic interface to the RabbitMQ Management HTTP API" +options="!check" # No testsuite in PYPI tarball url="https://github.com/bkjones/pyrabbit" arch="noarch" license="MIT" -depends="python2 py-httplib2" -depends_dev="" -makedepends="python2-dev py-setuptools" -install="" -subpackages="" +depends="python3 py3-httplib2" +makedepends="py3-setuptools" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" +builddir="$srcdir"/$_pkgname-$pkgver -_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 -} +replaces="py-rabbit" # Backwards compatibility +provides="py-rabbit=$pkgver-r$pkgrel" # Backwards compatibility build() { - cd "$_builddir" - python2 setup.py build || return 1 + python3 setup.py build } package() { - cd "$_builddir" - python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1 + python3 setup.py install --prefix=/usr --root="$pkgdir" } -md5sums="625013ba47fe79d296b76a74200c3312 pyrabbit-1.1.0.tar.gz" -sha256sums="50b8995fbfde14820ddc97292312c8f0c77054748c2b018138d03d94e400c39c pyrabbit-1.1.0.tar.gz" sha512sums="aa18c3ad232840da9b4978e275c05a82ea75212f3c4ee2df68075ac93295d9448a2376656953e7d1d9c9bc6a7e759eef020a8aaef98491a12959a416c31187ad pyrabbit-1.1.0.tar.gz" |