diff options
author | prspkt <prspkt@protonmail.com> | 2019-08-25 01:42:08 +0300 |
---|---|---|
committer | prspkt <prspkt@protonmail.com> | 2019-08-25 01:43:58 +0300 |
commit | b55f6b44acb3a11d419bc0836c138e6ca2462a7c (patch) | |
tree | 644bd1a798b9a49cc3656ece7c154cabbd531b47 | |
parent | ece6c5315bad2e968ac2dc18d504afc9e6f65515 (diff) | |
download | aports-b55f6b44acb3a11d419bc0836c138e6ca2462a7c.tar.bz2 aports-b55f6b44acb3a11d419bc0836c138e6ca2462a7c.tar.xz |
community/py-zmq: drop python2
Signed-off-by: prspkt <prspkt@protonmail.com>
-rw-r--r-- | community/py3-pyzmq/APKBUILD (renamed from community/py-zmq/APKBUILD) | 36 |
1 files changed, 8 insertions, 28 deletions
diff --git a/community/py-zmq/APKBUILD b/community/py3-pyzmq/APKBUILD index 2c93480f1a..2d0148d7ca 100644 --- a/community/py-zmq/APKBUILD +++ b/community/py3-pyzmq/APKBUILD @@ -1,6 +1,6 @@ # Contributor: Valery Kartel <valery.kartel@gmail.com> # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> -pkgname=py-zmq +pkgname=py3-pyzmq _pkgname=pyzmq pkgver=18.0.1 pkgrel=2 @@ -8,46 +8,26 @@ pkgdesc="Python bindings for ZeroMQ" url="https://pypi.python.org/pypi/pyzmq" arch="all !s390x" # https://github.com/zeromq/pyzmq/issues/1274 license="LGPL-3.0-or-later BSD" -depends="" -makedepends="python2-dev python3-dev py-setuptools zeromq-dev" -checkdepends="py2-pytest py3-pytest" -subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2" +depends="python3" +makedepends="python3-dev py3-setuptools zeromq-dev" +checkdepends="py3-pytest" source="https://files.pythonhosted.org/packages/source/p/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" +replaces=py-zmq # Backwards compatibility +provides=py-zmq=$pkgver-r$pkgrel # Backwards compatibility + build() { - cd "$builddir" - python2 setup.py build python3 setup.py build } check() { - python2 setup.py build_ext --inplace - python2 setup.py test python3 setup.py build_ext --inplace python3 setup.py test } package() { - mkdir -p "$pkgdir" -} - -_py() { - local python=$1 - pkgdesc="$pkgdesc - $python" - install_if="$pkgname=$pkgver-r$pkgrel $python" - - cd "$builddir" - $python setup.py install --prefix=/usr --root="$subpkgdir" -} - -_py2() { - replaces="$pkgname" - _py python2 -} - -_py3() { - _py python3 + python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="bb120811d160e31ce666d5ea92baacb33f3443522d767069ae58b9d2face973d957340c940006c59f6e163752d9fa26c3495f25dc29257bad0d0aa0d762bc4f2 pyzmq-18.0.1.tar.gz" |