From a7b88bf6106c4cff04ec3f351882547c018f9a22 Mon Sep 17 00:00:00 2001 From: Leo Date: Sun, 21 Jul 2019 15:29:22 -0300 Subject: community/py3-entrypoints: switch to py3 --- community/py3-entrypoints/APKBUILD | 36 ++++++------------------------------ 1 file changed, 6 insertions(+), 30 deletions(-) (limited to 'community/py3-entrypoints/APKBUILD') diff --git a/community/py3-entrypoints/APKBUILD b/community/py3-entrypoints/APKBUILD index 05616d9db0..4a681169a9 100644 --- a/community/py3-entrypoints/APKBUILD +++ b/community/py3-entrypoints/APKBUILD @@ -1,54 +1,30 @@ # Contributor: Keith Maxwell # Maintainer: Keith Maxwell -pkgname=py-entrypoints +pkgname=py3-entrypoints _pyname=entrypoints pkgver=0.3 -pkgrel=1 +pkgrel=2 pkgdesc="Discover and load entry points from installed packages." url="https://github.com/takluyver/entrypoints" arch="noarch" license="MIT" -checkdepends="py3-pytest py2-pytest py2-configparser" +checkdepends="py3-pytest" source="https://files.pythonhosted.org/packages/source/e/${_pyname}/${_pyname}-${pkgver}.tar.gz" -subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" - builddir="$srcdir/$_pyname-$pkgver" -prepare() { - default_prepare - cp -R "${builddir}" "${builddir}-py2" -} +replaces="py-entrypoints" # Backwards compatibility +provides="py-entrypoints=$pkgver-r$pkgrel" # Backwards compatibility build() { - cd "$builddir" python3 setup.py build - cd "$builddir-py2" - python2 setup.py build } check() { - cd "$builddir" pytest-3 - cd "$builddir-py2" - pytest-2 } package() { - mkdir -p "${pkgdir}" -} - -_py3() { - depends="python3" - install_if="$pkgname=$pkgver-r$pkgrel python3" - cd "$builddir" - python3 setup.py install --prefix=/usr --root="$subpkgdir" -} - -_py2() { - depends="python2 py2-configparser" - install_if="$pkgname=$pkgver-r$pkgrel python2" - cd "$builddir-py2" - python2 setup.py install --prefix=/usr --root="$subpkgdir" + python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="aa1274362d3a4b00266103319ca51aa266605b4999c89a9d0673eb61bfae9e646cb0ec6b86c95544493f6fe048385a2c7641d64adca8f45815546fb1e663c858 entrypoints-0.3.tar.gz" -- cgit v1.2.3