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

2019-10-26 Thread Felix Yan via arch-commits
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 
+# Contributor: speps 
+# Contributor: Arnau Sanchez 
+
+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
+}


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

2018-07-17 Thread Eli Schwartz via arch-commits
Date: Wednesday, July 18, 2018 @ 02:51:16
  Author: eschwartz
Revision: 361543

archrelease: copy trunk to community-staging-any

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

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

Copied: python-pyquery/repos/community-staging-any/PKGBUILD (from rev 361542, 
python-pyquery/trunk/PKGBUILD)
===
--- community-staging-any/PKGBUILD  (rev 0)
+++ community-staging-any/PKGBUILD  2018-07-18 02:51:16 UTC (rev 361543)
@@ -0,0 +1,61 @@
+# $Id$
+# Maintainer : Felix Yan 
+# Contributor: speps 
+# Contributor: Arnau Sanchez 
+
+pkgbase=python-pyquery
+pkgname=('python-pyquery' 'python2-pyquery')
+pkgver=1.4.0
+pkgrel=2
+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
+}


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

2016-12-24 Thread Bartłomiej Piotrowski
Date: Sunday, December 25, 2016 @ 05:46:16
  Author: bpiotrowski
Revision: 201836

archrelease: copy trunk to community-staging-any

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

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

Copied: python-pyquery/repos/community-staging-any/PKGBUILD (from rev 201835, 
python-pyquery/trunk/PKGBUILD)
===
--- community-staging-any/PKGBUILD  (rev 0)
+++ community-staging-any/PKGBUILD  2016-12-25 05:46:16 UTC (rev 201836)
@@ -0,0 +1,60 @@
+# $Id$
+# Maintainer : Felix Yan 
+# Contributor: speps 
+# Contributor: Arnau Sanchez 
+
+pkgbase=python-pyquery
+pkgname=('python-pyquery' 'python2-pyquery')
+pkgver=1.2.17
+pkgrel=2
+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' 'git')
+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=("git+https://github.com/gawel/pyquery.git#tag=$pkgver;)
+sha512sums=('SKIP')
+
+prepare() {
+  cp -a pyquery{,-py2}
+}
+
+build() {
+  cd "$srcdir"/pyquery
+  python setup.py build
+
+  cd "$srcdir"/pyquery-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/pyquery
+  nosetests3
+
+  cd "$srcdir"/pyquery-py2
+  nosetests2
+}
+
+package_python-pyquery() {
+  depends=('python-lxml' 'python-cssselect')
+  optdepends=('python-webob: query wsgi app')
+
+  cd pyquery
+  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-py2
+  python2 setup.py install -O1 --root="$pkgdir/"
+
+  install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}


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

2015-09-19 Thread Felix Yan
Date: Sunday, September 20, 2015 @ 04:02:04
  Author: fyan
Revision: 141112

archrelease: copy trunk to community-staging-any

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

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

Copied: python-pyquery/repos/community-staging-any/PKGBUILD (from rev 14, 
python-pyquery/trunk/PKGBUILD)
===
--- community-staging-any/PKGBUILD  (rev 0)
+++ community-staging-any/PKGBUILD  2015-09-20 02:02:04 UTC (rev 141112)
@@ -0,0 +1,58 @@
+# $Id$
+# Maintainer : Felix Yan 
+# Contributor: speps 
+# Contributor: Arnau Sanchez 
+
+_name=pyquery
+pkgbase=python-pyquery
+pkgname=('python-pyquery' 'python2-pyquery')
+pkgver=1.2.9
+pkgrel=2
+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() {
+  cd $_name-$pkgver
+  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
+  python3 setup.py install -O1 --root="$pkgdir/"
+
+  install -Dm644 ../LICENSE.txt 
"$pkgdir/usr/share/licenses/python-pyquery/LICENSE"
+}
+
+package_python2-pyquery() {
+  depends=('python2-lxml' 'python2-cssselect')
+  cd $_name-$pkgver-python2
+  python2 setup.py install -O1 --root="$pkgdir/"
+
+  install -Dm644 ../LICENSE.txt 
"$pkgdir/usr/share/licenses/python2-pyquery/LICENSE"
+}


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

2014-03-16 Thread Felix Yan
Date: Monday, March 17, 2014 @ 05:52:33
  Author: fyan
Revision: 107331

archrelease: copy trunk to community-staging-any

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

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

Copied: python-pyquery/repos/community-staging-any/PKGBUILD (from rev 107330, 
python-pyquery/trunk/PKGBUILD)
===
--- community-staging-any/PKGBUILD  (rev 0)
+++ community-staging-any/PKGBUILD  2014-03-17 04:52:33 UTC (rev 107331)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer : Felix Yan felixonm...@gmail.com
+# Contributor: speps speps at aur dot archlinux dot org
+# Contributor: Arnau Sanchez tokland {at} gmail {dot} com
+
+_name=pyquery
+pkgbase=python-pyquery
+pkgname=('python-pyquery' 'python2-pyquery')
+pkgver=1.2.8
+pkgrel=3
+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')
+source=(http://pypi.python.org/packages/source/p/$_name/$_name-$pkgver.zip;
+https://bitbucket.org/olauzanne/pyquery/raw/b70710332032/LICENSE.txt;)
+ 
+build() {
+  cp -r $_name-$pkgver $_name-$pkgver-python2
+
+  cd $_name-$pkgver
+  python3 setup.py build
+
+  cd ../$_name-$pkgver-python2
+  python2 setup.py build
+}
+
+package_python-pyquery() {
+  depends=('python-lxml' 'python-cssselect')
+  cd $_name-$pkgver
+  python3 setup.py install -O1 --root=$pkgdir/
+
+  install -Dm644 ../LICENSE.txt 
$pkgdir/usr/share/licenses/python-pyquery/LICENSE
+}
+
+package_python2-pyquery() {
+  depends=('python2-lxml' 'python2-cssselect')
+  cd $_name-$pkgver-python2
+  python2 setup.py install -O1 --root=$pkgdir/
+
+  install -Dm644 ../LICENSE.txt 
$pkgdir/usr/share/licenses/python2-pyquery/LICENSE
+}
+
+sha512sums=('9d344a5c4b0dd565e31c803ceecb217c71f9a70badbc65f9fcfb4a2cccb725a1bf938ed0b1697dcfdf0ec967321dccc1916a884ffdb0af9828a65005f63c47d7'
+
'4932f86cbe9ed4c2e658acf9c228fdb0b2430fd622d559555196c7db0f43ea435483c7ae9916c325b40130334f4706d30e5adea6bc1d097b3283a7fc64926685')