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

Felix Yan felixonmars at archlinux.org
Tue Jun 23 08:42:48 UTC 2020


    Date: Tuesday, June 23, 2020 @ 08:42:48
  Author: felixonmars
Revision: 650953

upgpkg: python-pyquery 1.4.1-3: remove python2 sibling

Modified:
  python-pyquery/trunk/PKGBUILD

----------+
 PKGBUILD |   48 +++++++++++-------------------------------------
 1 file changed, 11 insertions(+), 37 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-06-23 08:42:16 UTC (rev 650952)
+++ PKGBUILD	2020-06-23 08:42:48 UTC (rev 650953)
@@ -2,59 +2,33 @@
 # Contributor: speps <speps at aur dot archlinux dot org>
 # Contributor: Arnau Sanchez <tokland {at} gmail {dot} com>
 
-pkgbase=python-pyquery
-pkgname=('python-pyquery' 'python2-pyquery')
+pkgname=python-pyquery
 pkgver=1.4.1
-pkgrel=2
+pkgrel=3
 pkgdesc="A jquery-like library for python."
 arch=('any')
 url="https://github.com/gawel/pyquery/"
 license=('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-webtest' 'python2-webtest'
-              'python2-beautifulsoup4' 'python2-restkit')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/gawel/pyquery/archive/$pkgver.tar.gz")
+depends=('python-lxml' 'python-cssselect')
+optdepends=('python-webob: query wsgi app')
+makedepends=('python-setuptools')
+checkdepends=('python-requests' 'python-webob' 'python-nose' 'python-webtest')
+source=("https://github.com/gawel/pyquery/archive/$pkgver/$pkgname-$pkgver.tar.gz")
 sha512sums=('25fe43155ecfcafb34863cee0a4690f51f23690b866a9e985f605f9995093e6698dbe867e6a98978f6f389735666fe17328d60c59904456ee1b35ff450eae463')
 
-prepare() {
-  cp -a pyquery-$pkgver{,-py2}
-}
-
 build() {
-  cd "$srcdir"/pyquery-$pkgver
+  cd pyquery-$pkgver
   python setup.py build
-
-  cd "$srcdir"/pyquery-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
-  cd "$srcdir"/pyquery-$pkgver
+  cd pyquery-$pkgver
   nosetests3
-
-  cd "$srcdir"/pyquery-$pkgver-py2
-  nosetests2
 }
 
-package_python-pyquery() {
-  depends=('python-lxml' 'python-cssselect')
-  optdepends=('python-webob: query wsgi app')
-
+package() {
   cd pyquery-$pkgver
   python setup.py install -O1 --root="$pkgdir"
 
-  install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+  install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
 }
-
-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 pyquery-$pkgver-py2
-  python2 setup.py install -O1 --root="$pkgdir"
-
-  install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}



More information about the arch-commits mailing list