[arch-commits] Commit in python-pyquery/trunk (PKGBUILD)

Felix Yan fyan at archlinux.org
Sat Aug 23 06:07:11 UTC 2014


    Date: Saturday, August 23, 2014 @ 08:07:10
  Author: fyan
Revision: 117787

upgpkg: python-pyquery 1.2.9-1

Modified:
  python-pyquery/trunk/PKGBUILD

----------+
 PKGBUILD |   30 +++++++++++++++++++++---------
 1 file changed, 21 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-08-22 20:12:30 UTC (rev 117786)
+++ PKGBUILD	2014-08-23 06:07:10 UTC (rev 117787)
@@ -6,26 +6,41 @@
 _name=pyquery
 pkgbase=python-pyquery
 pkgname=('python-pyquery' 'python2-pyquery')
-pkgver=1.2.8
-pkgrel=3
+pkgver=1.2.9
+pkgrel=1
 pkgdesc="A jquery-like library for python."
 arch=('any')
 url="https://github.com/gawel/pyquery/"
 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') 
 source=("http://pypi.python.org/packages/source/p/$_name/$_name-$pkgver.zip"
         "https://bitbucket.org/olauzanne/pyquery/raw/b70710332032/LICENSE.txt")
- 
+sha512sums=('f5152b471c896b39032add6a7f0e6ce63f426b4903bc7cf9eef12723c73453b40c310dd1497a7c4189fc6faaf804690fd91fb6d2f97fb6c4d6314682de4b8d05'
+            '4932f86cbe9ed4c2e658acf9c228fdb0b2430fd622d559555196c7db0f43ea435483c7ae9916c325b40130334f4706d30e5adea6bc1d097b3283a7fc64926685')
+
+prepare() {
+  cp -a "$_name-$pkgver"{,-python2}
+}
+
 build() {
-  cp -r "$_name-$pkgver" "$_name-$pkgver-python2"
-
   cd $_name-$pkgver
-  python3 setup.py build
+  python setup.py build
 
   cd ../$_name-$pkgver-python2
   python2 setup.py build
 }
 
+check() {
+  cd $_name-$pkgver
+  nosetests3 || warning "Tests failed"
+
+  cd ../$_name-$pkgver-python2
+  nosetests2 || warning "Tests failed"
+}
+
 package_python-pyquery() {
   depends=('python-lxml' 'python-cssselect')
   cd $_name-$pkgver
@@ -41,6 +56,3 @@
 
   install -Dm644 ../LICENSE.txt "$pkgdir/usr/share/licenses/python2-pyquery/LICENSE"
 }
-
-sha512sums=('9d344a5c4b0dd565e31c803ceecb217c71f9a70badbc65f9fcfb4a2cccb725a1bf938ed0b1697dcfdf0ec967321dccc1916a884ffdb0af9828a65005f63c47d7'
-            '4932f86cbe9ed4c2e658acf9c228fdb0b2430fd622d559555196c7db0f43ea435483c7ae9916c325b40130334f4706d30e5adea6bc1d097b3283a7fc64926685')




More information about the arch-commits mailing list