[arch-commits] Commit in python-pyquery/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Oct 26 20:28:20 UTC 2019
Date: Saturday, October 26, 2019 @ 20:28:19
Author: felixonmars
Revision: 520551
archrelease: copy trunk to community-staging-any
Added:
python-pyquery/repos/community-staging-any/
python-pyquery/repos/community-staging-any/PKGBUILD
(from rev 520549, python-pyquery/trunk/PKGBUILD)
----------+
PKGBUILD | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 60 insertions(+)
Copied: python-pyquery/repos/community-staging-any/PKGBUILD (from rev 520549, python-pyquery/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-26 20:28:19 UTC (rev 520551)
@@ -0,0 +1,60 @@
+# Maintainer : Felix Yan <felixonmars at archlinux.org>
+# 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')
+pkgver=1.4.0
+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-coverage' 'python2-coverage' 'python-webtest' 'python2-webtest'
+ 'python2-beautifulsoup4' 'python2-restkit')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/gawel/pyquery/archive/$pkgver.tar.gz")
+sha512sums=('1f49909ec07d7e8f5919735691c3dfa53e4be05ed4bf065992a2115fa63f8a5d1ab7aead077829fa2951836d9115c23b248d1288a51691fafd48d99de52af200')
+
+prepare() {
+ cp -a pyquery-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/pyquery-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/pyquery-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/pyquery-$pkgver
+ nosetests3
+
+ cd "$srcdir"/pyquery-$pkgver-py2
+ nosetests2
+}
+
+package_python-pyquery() {
+ depends=('python-lxml' 'python-cssselect')
+ optdepends=('python-webob: query wsgi app')
+
+ cd pyquery-$pkgver
+ python setup.py install -O1 --root="$pkgdir"
+
+ install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+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