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

Eli Schwartz eschwartz at archlinux.org
Wed Jul 18 02:52:21 UTC 2018


    Date: Wednesday, July 18, 2018 @ 02:52:20
  Author: eschwartz
Revision: 361545

archrelease: copy trunk to community-staging-any

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

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

Copied: python-webtest/repos/community-staging-any/PKGBUILD (from rev 361544, python-webtest/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-07-18 02:52:20 UTC (rev 361545)
@@ -0,0 +1,61 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Jerome Leclanche <jerome at leclan.ch>
+
+pkgbase=python-webtest
+pkgname=(python-webtest python2-webtest)
+pkgver=2.0.30
+pkgrel=2
+pkgdesc="Helper to test WSGI applications"
+arch=('any')
+url='http://webtest.pythonpaste.org/'
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-webob' 'python2-webob' 'python-six' 'python2-six'
+             'python-beautifulsoup4' 'python2-beautifulsoup4' 'python-waitress' 'python2-waitress')
+checkdepends=('python-nose' 'python2-nose' 'python-mock' 'python2-mock' 'python-coverage' 'python2-coverage'
+              'python-pyquery' 'python2-pyquery'  'python-pastedeploy' 'python2-pastedeploy'
+              'python-wsgiproxy2' 'python2-wsgiproxy2')
+source=("https://pypi.io/packages/source/W/WebTest/WebTest-$pkgver.tar.gz")
+sha512sums=('aa3c32c377e3392cf8b7c3d192fb4ccde9c61ce9ecef0b478236d08cbddfd541524053caaaa6e2b02ed74dbc10262c5122946f8d79831c8b7bd5f37006073d5c')
+
+prepare() {
+  cp -a WebTest-$pkgver{,-py2}
+
+  export LC_CTYPE=en_US.UTF-8
+}
+
+build() {
+  cd "$srcdir"/WebTest-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/WebTest-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/WebTest-$pkgver
+  PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.7:$PYTHONPATH" nosetests3
+
+  cd "$srcdir"/WebTest-$pkgver-py2
+  PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7:$PYTHONPATH" nosetests2
+}
+
+package_python-webtest() {
+  depends=('python-webob' 'python-six' 'python-beautifulsoup4' 'python-waitress')
+  optdepends=('python-pyquery: for response.pyquery'
+              'python-lxml: for response.lxml')
+
+  cd WebTest-$pkgver
+  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 "docs/license.rst" "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-webtest() {
+  depends=('python2-webob' 'python2-six' 'python2-beautifulsoup4' 'python2-waitress')
+  optdepends=('python2-pyquery: for response.pyquery'
+              'python2-lxml: for response.lxml')
+
+  cd WebTest-$pkgver-py2
+  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 "docs/license.rst" "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list