X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mail.cmpwn.com (mail.cmpwn.com [45.56.77.53]) by lists.alpinelinux.org (Postfix) with ESMTP id D7068F8587D for ; Tue, 8 Jan 2019 19:01:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=cmpwn.com; s=cmpwn; t=1546974915; bh=y8kmkXcQeKZpi6oIDQOM6B4SnCPSGalfA1sNtc9M/P8=; h=From:To:Cc:Subject:Date; b=CGvjLcBkVTPvr0x5MelPxLjp2VrLQERLOFU3YhT0GybSewss10RIWa/YTyDu+Eto6 A0e++c58zgKYTft87QAlveNydxJja0oEqJzNCIjzk9RWPUB5DlU82MoYbPf/t0KOFJ YpPDXFkosP2QmJkbjapoptGA93u7/JNFJakGM9Uc= From: Drew DeVault To: alpine-aports@lists.alpinelinux.org Cc: Drew DeVault Subject: [alpine-aports] [PATCH 1/3] testing/py-flask-login: cleanup, adopt, update to 4.1 Date: Tue, 8 Jan 2019 14:01:00 -0500 Message-Id: <20190108190102.6059-1-sir@cmpwn.com> X-Mailer: git-send-email 2.19.2 X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit --- testing/py-flask-login/APKBUILD | 56 ++++++++++++++++++++++----------- 1 file changed, 38 insertions(+), 18 deletions(-) diff --git a/testing/py-flask-login/APKBUILD b/testing/py-flask-login/APKBUILD index f61af0a742..d17cb2da37 100644 --- a/testing/py-flask-login/APKBUILD +++ b/testing/py-flask-login/APKBUILD @@ -1,50 +1,70 @@ # Contributor: Fabian Affolter -# Maintainer: William Pitcock +# Contributor: William Pitcock +# Maintainer: Drew DeVault pkgname=py-flask-login _pkgname=Flask-Login -pkgver=0.4.0 -pkgrel=1 +pkgver=0.4.1 +pkgrel=0 pkgdesc="Flask user session management" url="https://pypi.python.org/pypi/Flask-Login" arch="noarch" license="BSD" -depends="py-flask" -depends_dev="" -makedepends="python2-dev python3-dev py-setuptools" -install="" +makedepends=" + py-setuptools + py2-flask + py2-nose + py3-flask + py3-nose + python2-dev + python3-dev +" subpackages="py2-flask-login:py2 py3-flask-login:py3" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" - builddir="$srcdir"/$_pkgname-$pkgver +prepare() { + cp -r "$builddir" "$builddir"-py2 + cp -r "$builddir" "$builddir"-py3 +} + build() { - cd "$builddir" + cd "$builddir"-py2 python2 setup.py build + cd "$builddir"-py3 python3 setup.py build } +check() { + py2ver=$(python2 --version 2>&1 | cut -d' ' -f2 | cut -d. -f1-2) + py3ver=$(python3 --version 2>&1 | cut -d' ' -f2 | cut -d. -f1-2) + cd "$builddir"-py2 + nosetests-$py2ver + cd "$builddir"-py3 + nosetests-$py3ver +} + package() { mkdir -p "$pkgdir" } _py() { - local python="$1" - pkgdesc="$pkgdesc ${python#python}" - depends="$depends $python" - install_if="$pkgname=$pkgver-r$pkgrel $python" + python="$1" + pkgdesc="$pkgdesc ${python#python}" + depends="$depends $python py${python#python}-flask" + install_if="$pkgname=$pkgver-r$pkgrel $python" - cd "$builddir" - $python setup.py install --prefix=/usr --root="$subpkgdir" + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" } py2() { - cd "$builddir" + cd "$builddir"-py2 _py python2 } py3() { - cd "$builddir" + cd "$builddir"-py3 _py python3 } -sha512sums="07f369887f933ca36d4c9935c457b15c2083195f9c05c4fa59a33ed6779664cc1791a7832966296cf81f3218c6b617722fa03c5b019525b143753772a3329f57 Flask-Login-0.4.0.tar.gz" +sha512sums="e57c80647e5504adb302490e6497165952a45c4bb211836bbd8bc2932ee19073bf7a8635ea4928ab83b9ae630617d3309089e62eaf07442ab094e9b1559b151f Flask-Login-0.4.1.tar.gz" -- 2.19.2 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---