diff options
author | prspkt <prspkt@protonmail.com> | 2019-06-02 20:41:19 +0300 |
---|---|---|
committer | prspkt <prspkt@protonmail.com> | 2019-06-02 20:44:51 +0300 |
commit | 14c40dcb781fd8f358b5a36271c4d80545bcb241 (patch) | |
tree | 132ddaabae1c3dcf336a80076d284d0a8a6c53af /testing | |
parent | 3c09ae482f0b8cb954b2a956824e1f0e2ee5a968 (diff) | |
download | aports-14c40dcb781fd8f358b5a36271c4d80545bcb241.tar.bz2 aports-14c40dcb781fd8f358b5a36271c4d80545bcb241.tar.xz |
testing/py-flask-gzip: upgrade to python3
Diffstat (limited to 'testing')
-rw-r--r-- | testing/py3-flask-gzip/APKBUILD (renamed from testing/py-flask-gzip/APKBUILD) | 29 |
1 files changed, 7 insertions, 22 deletions
diff --git a/testing/py-flask-gzip/APKBUILD b/testing/py3-flask-gzip/APKBUILD index a66646ac10..340d6a4dc8 100644 --- a/testing/py-flask-gzip/APKBUILD +++ b/testing/py3-flask-gzip/APKBUILD @@ -1,39 +1,24 @@ # Contributor: Fabian Affolter <fabian@affolter-engineering.ch> # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> -pkgname=py-flask-gzip +pkgname=py3-flask-gzip _pkgname=Flask-gzip pkgver=0.2 pkgrel=0 -pkgdesc="Flask gzip support" +pkgdesc="Compress responses in your Flask app with gzip" url="https://pypi.python.org/pypi/Flask-gzip" arch="noarch" license="BSD-3-Clause" -depends="python2 py-flask" -depends_dev="" -makedepends="python2-dev py-setuptools" -install="" -subpackages="" +depends="py3-flask" +makedepends="py3-setuptools" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" - -_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 -} +builddir="$srcdir"/$_pkgname-$pkgver 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" } sha512sums="0625fcab11c607209a8b95455621e347bd71d5be47ae1af09f11f284d495f29d0e23b7f228eeca9bed1615fffa48f036eddfdf2abab78b81b0d693a9b0b94fd8 Flask-gzip-0.2.tar.gz" |