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

Felix Yan felixonmars at archlinux.org
Sat Oct 26 05:34:23 UTC 2019


    Date: Saturday, October 26, 2019 @ 05:34:21
  Author: felixonmars
Revision: 520128

archrelease: copy trunk to community-staging-any

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

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

Copied: python-webtest/repos/community-staging-any/PKGBUILD (from rev 520126, python-webtest/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-26 05:34:21 UTC (rev 520128)
@@ -0,0 +1,62 @@
+# 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.33
+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'
+              'python-pylons-sphinx-themes' 'python2-pylons-sphinx-themes')
+source=("https://pypi.io/packages/source/W/WebTest/WebTest-$pkgver.tar.gz")
+sha512sums=('9f5c614f8215837dc5cecc9c3e844c5e1678eb8275f9e27a0ec6a68648e9f4f09155aa72f6c731c34028b8671b7776a94235f3e54d7dbf5ff55de94840171ca8')
+
+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.8:$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 license.rst "$pkgdir"/usr/share/licenses/$pkgname/license.rst
+}
+
+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 license.rst "$pkgdir"/usr/share/licenses/$pkgname/license.rst
+}



More information about the arch-commits mailing list