[arch-commits] Commit in python-bottle/trunk (PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Tue Apr 28 19:01:36 UTC 2020


    Date: Tuesday, April 28, 2020 @ 19:01:34
  Author: anthraxx
Revision: 622080

upgpkg: python-bottle 0.12.18-2: remove python2 checks to drop py2 libs

Modified:
  python-bottle/trunk/PKGBUILD

----------+
 PKGBUILD |   22 +++++++++++++---------
 1 file changed, 13 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-28 18:59:50 UTC (rev 622079)
+++ PKGBUILD	2020-04-28 19:01:34 UTC (rev 622080)
@@ -6,7 +6,7 @@
 pkgbase=python-bottle
 pkgname=("python-bottle" "python2-bottle")
 pkgver=0.12.18
-pkgrel=1
+pkgrel=2
 pkgdesc="A fast and simple micro-framework for small web-applications"
 arch=(any)
 url="https://bottlepy.org"
@@ -13,10 +13,8 @@
 license=('MIT')
 options=(!emptydirs)
 makedepends=('python-setuptools' 'python2-setuptools' 'git')
-checkdepends=('python-mako' 'python2-mako' 'python-jinja' 'python2-jinja' 'python-cherrypy'
-              'python2-cherrypy' 'python-twisted' 'python2-twisted' 'python-tornado'
-              'python2-tornado' 'python-paste' 'python2-paste' 'python-gevent' 'python2-gevent'
-              'python-eventlet' 'python2-eventlet')
+checkdepends=('python-mako' 'python-jinja' 'python-cherrypy' 'python-twisted'
+              'python-tornado' 'python-paste' 'python-gevent' 'python-eventlet')
 source=("$pkgname-$pkgver.tar.gz::https://github.com/defnull/bottle/archive/$pkgver.tar.gz")
 sha512sums=('90759ecd94dd489a1e66b2ddfadc0a0bbb88bf1b0c666e292f2466a88b9b0195fe3679928683ca58af94b0bbfa4f815269f6497477db51229cc7250b705e73ed')
 
@@ -28,10 +26,14 @@
 check() {
   cd "$srcdir"/bottle-$pkgver
   # https://github.com/bottlepy/bottle/issues/791
-  python test/testall.py || warning 'Tests failed'
+  python test/testall.py || echo "Tests failed"
+}
 
+build() {
+  cd "$srcdir"/bottle-$pkgver
+  python setup.py build
   cd "$srcdir"/bottle-$pkgver-py2
-  python2 test/testall.py
+  python2 setup.py build
 }
 
 package_python-bottle() {
@@ -38,7 +40,7 @@
   depends=('python')
 
   cd bottle-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
   install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
 
@@ -46,8 +48,10 @@
   depends=('python2')
 
   cd bottle-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
+  python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
   install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 
   mv "$pkgdir"/usr/bin/bottle.py{,2}
 }
+
+# vim: ts=2 sw=2 et:


More information about the arch-commits mailing list