[arch-commits] Commit in python-pyquery/trunk (PKGBUILD)
Felix Yan
fyan at archlinux.org
Tue Feb 2 14:47:54 UTC 2016
Date: Tuesday, February 2, 2016 @ 15:47:54
Author: fyan
Revision: 159976
upgpkg: python-pyquery 1.2.11-2
fix dependencies
Modified:
python-pyquery/trunk/PKGBUILD
----------+
PKGBUILD | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-02-02 14:41:09 UTC (rev 159975)
+++ PKGBUILD 2016-02-02 14:47:54 UTC (rev 159976)
@@ -7,7 +7,7 @@
pkgbase=python-pyquery
pkgname=('python-pyquery' 'python2-pyquery')
pkgver=1.2.11
-pkgrel=1
+pkgrel=2
pkgdesc="A jquery-like library for python."
arch=('any')
url="https://github.com/gawel/pyquery/"
@@ -14,8 +14,8 @@
license=('custom:BSD')
makedepends=('python-setuptools' 'python2-setuptools' 'python-lxml' 'python2-lxml' 'python-cssselect' 'python2-cssselect')
checkdepends=('python-requests' 'python2-requests' 'python-webob' 'python2-webob' 'python-nose' 'python2-nose'
- 'python-coverage' 'python2-coverage' 'python-webtest' 'python2-webtest' 'python2-beautifulsoup4')
- # In AUR: 'python-waitress' 'python2-waitress')
+ 'python-coverage' 'python2-coverage' 'python-webtest' 'python2-webtest' 'python2-beautifulsoup4'
+ 'python2-restkit')
source=("http://pypi.python.org/packages/source/p/$_name/$_name-$pkgver.tar.gz"
"https://bitbucket.org/olauzanne/pyquery/raw/b70710332032/LICENSE.txt")
sha512sums=('56ee20e0aefdd290069151d5085a876d6502a226ced72bd43e3e88572f31eecee7abecf4bdd38a1a17685021328963e9fe45eaaac121dc880bcb6ba74b8df12d'
@@ -35,14 +35,16 @@
check() {
cd $_name-$pkgver
- nosetests3 || warning "Tests failed"
+ nosetests3
cd ../$_name-$pkgver-python2
- nosetests2 || warning "Tests failed"
+ nosetests2
}
package_python-pyquery() {
depends=('python-lxml' 'python-cssselect')
+ optdepends=('python-webob: query wsgi app')
+
cd $_name-$pkgver
python3 setup.py install -O1 --root="$pkgdir/"
@@ -51,6 +53,9 @@
package_python2-pyquery() {
depends=('python2-lxml' 'python2-cssselect')
+ optdepends=('python2-webob: to query wsgi app'
+ 'python2-restkit: to get url directly with a HostProxy app')
+
cd $_name-$pkgver-python2
python2 setup.py install -O1 --root="$pkgdir/"
More information about the arch-commits
mailing list