From 0c7003cdcd410df14f77e2f68c53aa084c959e68363f0e1cf61b5700e3da5410 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Sat, 14 Jul 2018 09:01:34 +0000 Subject: [PATCH] Accepting request 622526 from home:apersaud:branches:devel:languages:python update to latest version OBS-URL: https://build.opensuse.org/request/show/622526 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-SPARQLWrapper?expand=0&rev=15 --- SPARQLWrapper-1.8.0.tar.gz | 3 --- SPARQLWrapper-1.8.2.tar.gz | 3 +++ python-SPARQLWrapper.changes | 21 +++++++++++++++++++++ python-SPARQLWrapper.spec | 28 +++++++++++++++------------- 4 files changed, 39 insertions(+), 16 deletions(-) delete mode 100644 SPARQLWrapper-1.8.0.tar.gz create mode 100644 SPARQLWrapper-1.8.2.tar.gz diff --git a/SPARQLWrapper-1.8.0.tar.gz b/SPARQLWrapper-1.8.0.tar.gz deleted file mode 100644 index dea332a..0000000 --- a/SPARQLWrapper-1.8.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3b46d0f18ca0b65b8b965d6d1ae257b229388400b06e7dc19f0a51614dc1abde -size 28775 diff --git a/SPARQLWrapper-1.8.2.tar.gz b/SPARQLWrapper-1.8.2.tar.gz new file mode 100644 index 0000000..a5e47c5 --- /dev/null +++ b/SPARQLWrapper-1.8.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7f4c8d38ea1bfcffbc358c9a05de35a3fd7152cc3e8ea57963ee7a0a242f7a5e +size 34967 diff --git a/python-SPARQLWrapper.changes b/python-SPARQLWrapper.changes index 070e4dc..687d697 100644 --- a/python-SPARQLWrapper.changes +++ b/python-SPARQLWrapper.changes @@ -1,3 +1,24 @@ +------------------------------------------------------------------- +Sun Jul 8 03:45:56 UTC 2018 - arun@gmx.de + +- specfile: + * update tests + +- update to version 1.8.2: + * Fixed bug (#100) + * Updated doc + * Added Unauthorized exception in SPARQLWrapperExceptions + * Added support for custom HTTP headers (#52) + * Changed timeout setting (#106) + +- changes from version 1.8.1: + * Update classifiers (Python 3.6) + * Added some documentation about the parameter to indicate the + output format + * Fixed typo in width calculation + * Added support for CSV, TSV (PR #98) + * Added support for Only HTTP Content Negotiation (#82) + ------------------------------------------------------------------- Wed Jan 3 18:11:19 UTC 2018 - tchvatal@suse.com diff --git a/python-SPARQLWrapper.spec b/python-SPARQLWrapper.spec index 79a6ed8..92a434b 100644 --- a/python-SPARQLWrapper.spec +++ b/python-SPARQLWrapper.spec @@ -17,26 +17,21 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -# Tests are not compatible with python3 -%if 0%{?have_python2} -%bcond_without tests -%else -%bcond_with tests -%endif Name: python-SPARQLWrapper -Version: 1.8.0 +Version: 1.8.2 Release: 0 Summary: SPARQL Endpoint interface to Python License: W3C Group: Development/Languages/Python -Url: http://sparql-wrapper.sourceforge.net/ +URL: http://sparql-wrapper.sourceforge.net/ Source: https://files.pythonhosted.org/packages/source/S/SPARQLWrapper/SPARQLWrapper-%{version}.tar.gz -BuildRequires: %{python_module setuptools} # Only used during installation +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRequires: python3-2to3 +BuildRequires: python3-tools Requires: python-rdflib >= 4.0 BuildArch: noarch %python_subpackages @@ -56,13 +51,20 @@ format. %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -%if %{with tests} %check -python2 test/wrapper_test.py +%if %python3_version_nodots > 34 +# taken from https://github.com/RDFLib/sparqlwrapper/blob/master/run_tests_py3.sh +cp -r %{buildroot}%{python_sitelib}/SPARQLWrapper test/ +2to3 -wn --no-diffs test +sed -i.bak s/urllib2._opener/urllib.request._opener/g test/wrapper_test.py +python3 -m pytest test +%else +python -m pytest test %endif %files %{python_files} -%doc README.md AUTHORS.md LICENSE.txt +%license LICENSE.txt +%doc README.md AUTHORS.md %{python_sitelib}/SPARQLWrapper/ %{python_sitelib}/SPARQLWrapper-%{version}-py*.egg-info