[arch-commits] Commit in python-wsgiproxy2/repos (2 files)

Eli Schwartz eschwartz at archlinux.org
Wed Jul 18 02:53:42 UTC 2018


    Date: Wednesday, July 18, 2018 @ 02:53:41
  Author: eschwartz
Revision: 361549

archrelease: copy trunk to community-staging-any

Added:
  python-wsgiproxy2/repos/community-staging-any/
  python-wsgiproxy2/repos/community-staging-any/PKGBUILD
    (from rev 361548, python-wsgiproxy2/trunk/PKGBUILD)

----------+
 PKGBUILD |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

Copied: python-wsgiproxy2/repos/community-staging-any/PKGBUILD (from rev 361548, python-wsgiproxy2/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-07-18 02:53:41 UTC (rev 361549)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-wsgiproxy2
+pkgname=('python-wsgiproxy2' 'python2-wsgiproxy2')
+pkgver=0.4.4
+pkgrel=2
+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')
+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')
+
+prepare() {
+  cp -a WSGIProxy2{,-py2}
+}
+
+build() {
+  cd "$srcdir/WSGIProxy2"
+  python setup.py build
+
+  cd "$srcdir/WSGIProxy2-py2"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/WSGIProxy2"
+  nosetests3
+
+  cd "$srcdir/WSGIProxy2-py2"
+  nosetests2
+}
+
+package_python-wsgiproxy2() {
+  depends=('python-webob' 'python-six')
+
+  cd WSGIProxy2
+  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
+}



More information about the arch-commits mailing list