From e369c1fd7707a73f2c3e2b11b613198d9a4106de Mon Sep 17 00:00:00 2001 From: Leo Date: Thu, 26 Sep 2019 18:57:13 -0300 Subject: main/py3-yaml: drop py2 Closes !169 --- main/py3-yaml/APKBUILD | 33 ++++++++------------------------- 1 file changed, 8 insertions(+), 25 deletions(-) diff --git a/main/py3-yaml/APKBUILD b/main/py3-yaml/APKBUILD index 9b3a974182..25944a4dda 100644 --- a/main/py3-yaml/APKBUILD +++ b/main/py3-yaml/APKBUILD @@ -1,19 +1,21 @@ # Contributor: Fabian Affolter # Contributor: Jakub Jirutka # Maintainer: Fabian Affolter -pkgname=py-yaml +pkgname=py3-yaml _pkgname=PyYAML pkgver=5.1.2 -pkgrel=0 -pkgdesc="Python bindings for YAML" +pkgrel=1 +pkgdesc="Python3 bindings for YAML" url="http://pyyaml.org" arch="all" license="MIT" -makedepends="python2-dev python3-dev yaml-dev cython2 cython3" -subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" +makedepends="python3-dev yaml-dev cython3" source="$_pkgname-$pkgver.tar.gz::https://github.com/yaml/pyyaml/archive/$pkgver.tar.gz" builddir="$srcdir/pyyaml-$pkgver" +replaces="py-yaml" # Backwards compatibility +provides="py-yaml=$pkgver-r$pkgrel" # Backwards compatibility + prepare() { cd "$builddir" default_prepare @@ -22,36 +24,17 @@ prepare() { build() { cd "$builddir" - python2 setup.py --with-libyaml build python3 setup.py --with-libyaml build } check() { cd "$builddir" - python2 setup.py test python3 setup.py test } package() { - mkdir -p "$pkgdir" -} - -_py2() { - replaces="$pkgname" - _py python2 -} - -_py3() { - _py python3 -} - -_py() { - local python="$1" - pkgdesc="$pkgdesc (for $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" } sha512sums="7bc3dceadcfd512ede67581625887d00822464f20d3b646904f4a73afce8cf3b9766829c6004b626c31757edf8e2eedc27e60d96bee13afa68d3296a8a7f33bb PyYAML-5.1.2.tar.gz" -- cgit v1.2.3