diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-09-07 07:21:08 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-09-07 07:32:31 -0300 |
commit | f09d551fe2380ffb10f85149826781dd4dcb0d20 (patch) | |
tree | ef375a517c068d058e91caf5f849f62b36210459 /community/py3-zope-deferredimport | |
parent | 47adcbaf3825a41fa3ab6a233f04c7bba8108663 (diff) | |
download | aports-f09d551fe2380ffb10f85149826781dd4dcb0d20.tar.bz2 aports-f09d551fe2380ffb10f85149826781dd4dcb0d20.tar.xz |
community/py3-zope-deferredimport: drop py2
Diffstat (limited to 'community/py3-zope-deferredimport')
-rw-r--r-- | community/py3-zope-deferredimport/APKBUILD | 39 |
1 files changed, 9 insertions, 30 deletions
diff --git a/community/py3-zope-deferredimport/APKBUILD b/community/py3-zope-deferredimport/APKBUILD index ca36a1f227..9831269f5e 100644 --- a/community/py3-zope-deferredimport/APKBUILD +++ b/community/py3-zope-deferredimport/APKBUILD @@ -1,53 +1,32 @@ # Contributor: Carlo Landmeter <clandmeter@alpinelinux.org> # Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org> -pkgname=py-zope-deferredimport +pkgname=py3-zope-deferredimport _pkgname=zope.deferredimport pkgver=4.3.1 -pkgrel=0 +pkgrel=1 pkgdesc="Defer imports until used by code" +options="!check" # Requires py3-zope-testrunner, is in testing url="https://github.com/zopefoundation/$_pkgname" arch="noarch" license="ZPL-2.1" -depends="py-setuptools py-zope-proxy" -makedepends="python2-dev python3-dev" -subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" +depends="py3-setuptools py3-zope-proxy" +checkdepends="py3-zope-testrunner" source="$_pkgname-$pkgver.tar.gz::https://github.com/zopefoundation/$_pkgname/archive/$pkgver.tar.gz" - builddir="$srcdir"/$_pkgname-$pkgver +replaces="py-zope-deferredimport" # Backwards compatibility +provides="py-zope-deferredimport=$pkgver-r$pkgrel" # Backwards compatibility + build() { - python2 setup.py build python3 setup.py build } check() { - python2 setup.py test python3 setup.py test } package() { - mkdir -p "$pkgdir" -} - -_py2() { - replaces="$pkgname" - depends="${depends//py-/py2-}" - _py python2 -} - -_py3() { - depends="${depends//py-/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" + python3 setup.py install --prefix=/usr --root="$pkgdir" } |