[arch-commits] Commit in python-wsgiproxy2/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Thu Sep 20 09:47:57 UTC 2018
Date: Thursday, September 20, 2018 @ 09:47:56
Author: felixonmars
Revision: 383509
upgpkg: python-wsgiproxy2 0.4.5-1
Modified:
python-wsgiproxy2/trunk/PKGBUILD
----------+
PKGBUILD | 30 +++++++++++-------------------
1 file changed, 11 insertions(+), 19 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-09-20 09:47:39 UTC (rev 383508)
+++ PKGBUILD 2018-09-20 09:47:56 UTC (rev 383509)
@@ -2,36 +2,28 @@
pkgbase=python-wsgiproxy2
pkgname=('python-wsgiproxy2' 'python2-wsgiproxy2')
-pkgver=0.4.4
-pkgrel=2
+pkgver=0.4.5
+pkgrel=1
pkgdesc="A WSGI Proxy with various http client backends"
arch=('any')
license=('MIT')
url="https://github.com/gawel/WSGIProxy2/"
makedepends=('python-setuptools' 'python2-setuptools' 'python-webob' 'python2-webob'
- 'python-six' 'python2-six' 'git')
+ 'python-six' 'python2-six')
checkdepends=('python-nose' 'python2-nose' 'python-requests' 'python2-requests'
'python-webtest' 'python2-webtest' 'python-waitress' 'python2-waitress')
-source=("git+https://github.com/gawel/WSGIProxy2.git#tag=$pkgver")
-sha512sums=('SKIP')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/gawel/WSGIProxy2/archive/$pkgver.tar.gz")
+sha512sums=('e16e7c5e4c2df6bd69730c819a5ee833be7bce06f9d7ce8615084cbe290c39ee89c7ce8094db58a58289f31b4dbca726c4fddb6f35e0ce445d944f026c79df61')
-prepare() {
- cp -a WSGIProxy2{,-py2}
-}
-
build() {
- cd "$srcdir/WSGIProxy2"
+ cd WSGIProxy2-$pkgver
python setup.py build
-
- cd "$srcdir/WSGIProxy2-py2"
python2 setup.py build
}
check() {
- cd "$srcdir/WSGIProxy2"
+ cd WSGIProxy2-$pkgver
nosetests3
-
- cd "$srcdir/WSGIProxy2-py2"
nosetests2
}
@@ -38,13 +30,13 @@
package_python-wsgiproxy2() {
depends=('python-webob' 'python-six')
- cd WSGIProxy2
- python setup.py install --root="${pkgdir}" --optimize=1
+ cd WSGIProxy2-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
}
package_python2-wsgiproxy2() {
depends=('python2-webob' 'python2-six')
- cd WSGIProxy2-py2
- python2 setup.py install --root="${pkgdir}" --optimize=1
+ cd WSGIProxy2-$pkgver
+ python2 setup.py install --root="$pkgdir" --optimize=1
}
More information about the arch-commits
mailing list