From 06bd1ab55f6d0fc2517623d7d5b30d5304369e81 Mon Sep 17 00:00:00 2001 From: Leo Date: Sun, 8 Sep 2019 14:34:42 -0300 Subject: testing/py3-flask-headers: drop py2 --- testing/py3-flask-headers/APKBUILD | 35 +++++++++++------------------------ 1 file changed, 11 insertions(+), 24 deletions(-) (limited to 'testing/py3-flask-headers') diff --git a/testing/py3-flask-headers/APKBUILD b/testing/py3-flask-headers/APKBUILD index abcff736e7..61dedb7758 100644 --- a/testing/py3-flask-headers/APKBUILD +++ b/testing/py3-flask-headers/APKBUILD @@ -1,41 +1,28 @@ # Contributor: Fabian Affolter # Maintainer: Fabian Affolter -pkgname=py-flask-headers +pkgname=py3-flask-headers _pkgname=Flask-Headers pkgver=1.0 -pkgrel=0 +pkgrel=1 pkgdesc="Flask headers extension" +options="!check" # No testsuite on PYPI, no GitHub tarballs url="https://pypi.python.org/pypi/Flask-Headers" arch="noarch" -license="BSD" -depends="python2 py-flask" -depends_dev="" -makedepends="python2-dev py-setuptools" -install="" -subpackages="" +license="MIT" +depends="python3 py3-flask" +makedepends="py3-setuptools" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" +builddir="$srcdir"/$_pkgname-$pkgver -_builddir="$srcdir"/$_pkgname-$pkgver -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} +replaces="py-flask-headers" # Backwards compatibility +provides="py-flask-headers=$pkgver-r$pkgrel" # Backwards compatibility build() { - cd "$_builddir" - python2 setup.py build || return 1 + python3 setup.py build } package() { - cd "$_builddir" - python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1 + python3 setup.py install --prefix=/usr --root="$pkgdir" } -md5sums="23b9900d896f8de205fa43f91e86a7b0 Flask-Headers-1.0.tar.gz" -sha256sums="195d2acf0caf595ade2c38fe613d4d8c30521074888f83c9580dfff6bbef8fc9 Flask-Headers-1.0.tar.gz" sha512sums="aae3088745970575464dc93bb0198a461ac218f4b9d2396a9ff7b950610f191453341f6d434ba7636d44f54a6d8fd0b3e000dba36c272d80c3d85242e029a48b Flask-Headers-1.0.tar.gz" -- cgit v1.2.3