Date: Monday, November 4, 2019 @ 09:28:22
  Author: felixonmars
Revision: 366721

archrelease: copy trunk to staging-any

Added:
  python-rdflib/repos/staging-any/
  python-rdflib/repos/staging-any/PKGBUILD
    (from rev 366720, python-rdflib/trunk/PKGBUILD)
  python-rdflib/repos/staging-any/py3.7.diff
    (from rev 366720, python-rdflib/trunk/py3.7.diff)

------------+
 PKGBUILD   |   43 +++++++++++++++++++++++++++++++++++++++++++
 py3.7.diff |   19 +++++++++++++++++++
 2 files changed, 62 insertions(+)

Copied: python-rdflib/repos/staging-any/PKGBUILD (from rev 366720, 
python-rdflib/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD                                (rev 0)
+++ staging-any/PKGBUILD        2019-11-04 09:28:22 UTC (rev 366721)
@@ -0,0 +1,43 @@
+# Maintainer:
+# Contributor: Andrea Scarpino <and...@archlinux.org>
+# Contributor: Leif Warner <abimel...@gmail.com>
+
+pkgname=python-rdflib
+pkgver=4.2.2
+pkgrel=3
+pkgdesc="A Python library for working with RDF, a simple yet powerful language 
for representing information"
+arch=('any')
+url="http://rdflib.net/";
+license=('BSD')
+depends=('python-isodate')
+makedepends=('python-setuptools')
+checkdepends=('python-nose' 'python-pyparsing' 'python-six' 'python-html5lib' 
'python-sparqlwrapper'
+              'python-networkx' 'python-decorator')
+source=(rdflib-$pkgver.tar.gz::https://github.com/RDFLib/rdflib/tarball/$pkgver
+        py3.7.diff)
+sha1sums=('08fe9d3480af78ca70380eeae082524ce70bb9d3'
+          '71e6b688c981a3f1387f68944580c1e5d5363915')
+
+prepare() {
+  patch -d RDFLib-rdflib-* -p1 < py3.7.diff
+}
+
+build() {
+  cd RDFLib-rdflib-*
+  python setup.py build
+}
+
+check() {
+  cd RDFLib-rdflib-*
+  #python setup.py test # Will download and install rdflib again
+  nosetests3 --where=./build/src \
+    --with-doctest \
+    --doctest-extension=.doctest \
+    --doctest-tests
+}
+
+package() {
+  cd RDFLib-rdflib-*
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644  LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}

Copied: python-rdflib/repos/staging-any/py3.7.diff (from rev 366720, 
python-rdflib/trunk/py3.7.diff)
===================================================================
--- staging-any/py3.7.diff                              (rev 0)
+++ staging-any/py3.7.diff      2019-11-04 09:28:22 UTC (rev 366721)
@@ -0,0 +1,19 @@
+diff -u -r RDFLib-rdflib-2fb94c8/rdflib/plugins/sparql/evaluate.py 
RDFLib-rdflib-2fb94c8-py3.7/rdflib/plugins/sparql/evaluate.py
+--- RDFLib-rdflib-2fb94c8/rdflib/plugins/sparql/evaluate.py    2017-01-29 
17:51:48.000000000 +0100
++++ RDFLib-rdflib-2fb94c8-py3.7/rdflib/plugins/sparql/evaluate.py      
2018-07-29 17:31:55.614217759 +0200
+@@ -326,9 +326,12 @@
+     # import pdb; pdb.set_trace()
+     res = evalPart(ctx, slice.p)
+     i = 0
+-    while i < slice.start:
+-        res.next()
+-        i += 1
++    try:
++        while i < slice.start:
++            res.next()
++            i += 1
++    except StopIteration:
++        return
+     i = 0
+     for x in res:
+         i += 1

Reply via email to