aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-bottle-pgsql
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-09-07 13:16:51 -0300
committerLeo <thinkabit.ukim@gmail.com>2019-09-07 13:19:06 -0300
commitee4a15a48b949123d3ad3d2cefa643f01e0a2bd5 (patch)
tree528e906aa777e81d5956115f06626f17c3f53a0f /testing/py3-bottle-pgsql
parent7a06f739287b21b9734d30cb1571cf9438ea121d (diff)
downloadaports-ee4a15a48b949123d3ad3d2cefa643f01e0a2bd5.tar.bz2
aports-ee4a15a48b949123d3ad3d2cefa643f01e0a2bd5.tar.xz
testing/py3-bottle-pgsql: drop py2
Diffstat (limited to 'testing/py3-bottle-pgsql')
-rw-r--r--testing/py3-bottle-pgsql/APKBUILD33
1 files changed, 10 insertions, 23 deletions
diff --git a/testing/py3-bottle-pgsql/APKBUILD b/testing/py3-bottle-pgsql/APKBUILD
index 2356f10dc2..d99b181b5b 100644
--- a/testing/py3-bottle-pgsql/APKBUILD
+++ b/testing/py3-bottle-pgsql/APKBUILD
@@ -1,41 +1,28 @@
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
-pkgname=py-bottle-pgsql
+pkgname=py3-bottle-pgsql
_pkgname=bottle-pgsql
pkgver=0.1
-pkgrel=0
+pkgrel=1
pkgdesc="Bottle PgSQL integration plugin"
+options="!check" # No testsuite
url="https://github.com/raisoblast/bottle-pgsql"
arch="noarch"
license="MIT"
-depends="python2 py-bottle"
-depends_dev=""
-makedepends="python2-dev py-setuptools"
-install=""
-subpackages=""
+depends="python3 py3-bottle"
+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-bottle-pgsql" # Backwards compatibility
+provides="py-bottle-pgsql=$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="1062bbcc2410d6d7947a1435116a0aa9 bottle-pgsql-0.1.tar.gz"
-sha256sums="2b5bb588620e2d277965f7451347df6ec65e913b6fb45e28a528b93d0d9a0091 bottle-pgsql-0.1.tar.gz"
sha512sums="a14d7cae86d7efa4cb7734886d34b8922fb06cbb47e46ecabf6cc993f9e266e2e072b1c0e6849689e6c11c3f20ce638753f2b6fcb4c2f68a3d5f90f1533292cb bottle-pgsql-0.1.tar.gz"