[arch-commits] Commit in python-bottle/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sun Oct 9 14:57:21 UTC 2016
Date: Sunday, October 9, 2016 @ 14:57:20
Author: felixonmars
Revision: 191709
upgpkg: python-bottle 0.12.10-1
Modified:
python-bottle/trunk/PKGBUILD
----------+
PKGBUILD | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-10-09 14:54:15 UTC (rev 191708)
+++ PKGBUILD 2016-10-09 14:57:20 UTC (rev 191709)
@@ -6,7 +6,7 @@
pkgbase=python-bottle
pkgname=("python-bottle" "python2-bottle")
-pkgver=0.12.9
+pkgver=0.12.10
pkgrel=1
pkgdesc="A fast and simple micro-framework for small web-applications"
arch=(any)
@@ -27,20 +27,20 @@
}
check() {
- cd "$srcdir/bottle"
+ cd "$srcdir/"bottle
# https://github.com/bottlepy/bottle/issues/791
python test/testall.py || warning 'Tests failed'
- cd "$srcdir/bottle-py2"
+ cd "$srcdir/"bottle-py2
python2 test/testall.py
}
package_python-bottle() {
- depends=('python3')
+ depends=('python')
cd bottle
- python3 setup.py install --root="${pkgdir}" --optimize=1
- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
package_python2-bottle() {
@@ -47,9 +47,9 @@
depends=('python2')
cd bottle-py2
- python2 setup.py install --root="${pkgdir}" --optimize=1
- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
# deal with conflict with python-bottle's /usr/bin/bottle.py
- mv "$pkgdir/usr/bin/bottle.py"{,2}
+ mv "$pkgdir"/usr/bin/bottle.py{,2}
}
More information about the arch-commits
mailing list