diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-09-07 07:23:40 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-09-07 07:31:49 -0300 |
commit | c6f2cd90cb20c6a77eb12dd9d42c31207c1d885e (patch) | |
tree | 9937ab41201610a1b8c526087873c5a68a30c979 /community/py3-zope-proxy | |
parent | 9bb49ef950938559fbca6cff7d23b7572b962e18 (diff) | |
download | aports-c6f2cd90cb20c6a77eb12dd9d42c31207c1d885e.tar.bz2 aports-c6f2cd90cb20c6a77eb12dd9d42c31207c1d885e.tar.xz |
community/py3-zope-proxy: drop py2
Diffstat (limited to 'community/py3-zope-proxy')
-rw-r--r-- | community/py3-zope-proxy/APKBUILD | 40 |
1 files changed, 10 insertions, 30 deletions
diff --git a/community/py3-zope-proxy/APKBUILD b/community/py3-zope-proxy/APKBUILD index 70ff9a1a7b..868d6192d3 100644 --- a/community/py3-zope-proxy/APKBUILD +++ b/community/py3-zope-proxy/APKBUILD @@ -1,53 +1,33 @@ # Contributor: Carlo Landmeter <clandmeter@alpinelinux.org> # Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org> -pkgname=py-zope-proxy +pkgname=py3-zope-proxy _pkgname=zope.proxy pkgver=4.3.2 -pkgrel=0 +pkgrel=1 pkgdesc="Generic transparent proxies via a C extension module" +options="!check" # Requires unpackaged zope.security and upper repo zope.testrunner url="https://github.com/zopefoundation/$_pkgname" arch="all" license="ZPL-2.1" -depends="py-setuptools py-zope-interface" -makedepends="python2-dev python3-dev" -subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" +depends="py3-setuptools py3-zope-interface" +makedepends="python3-dev" +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-proxy" # Backwards compatibility +provides="py-zope-proxy=$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" } |