forked from pool/python-SPARQLWrapper
Accepting request 1141948 from devel:languages:python
- update to 2.0.0: * Ported codebase to Python 3. Dropped support for Python 2 * Removed nosetest in favour of unittest * Added a CLI: ``rqw`` * Updated for RDFLib >= 6.1.1 * Added type hints - drop no-2to3.patch (obsolete) - add no-2to3.patch for better compatibility with newer setuptools OBS-URL: https://build.opensuse.org/request/show/1141948 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-SPARQLWrapper?expand=0&rev=11
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d6a66b5b8cda141660e07aeb00472db077a98d22cb588c973209c7336850fb3c
|
||||
size 89117
|
||||
3
SPARQLWrapper-2.0.0.tar.gz
Normal file
3
SPARQLWrapper-2.0.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:3fed3ebcc77617a4a74d2644b86fd88e0f32e7f7003ac7b2b334c026201731f1
|
||||
size 98429
|
||||
@@ -1,13 +0,0 @@
|
||||
Index: SPARQLWrapper-1.8.5/setup.py
|
||||
===================================================================
|
||||
--- SPARQLWrapper-1.8.5.orig/setup.py
|
||||
+++ SPARQLWrapper-1.8.5/setup.py
|
||||
@@ -75,8 +75,6 @@ setup(
|
||||
'Topic :: Software Development :: Libraries :: Python Modules',
|
||||
],
|
||||
keywords = ['python', 'sparql', 'rdf', 'rdflib'],
|
||||
- use_2to3 = True,
|
||||
- use_2to3_fixers = ['custom_fixers'],
|
||||
project_urls={
|
||||
'Home': 'https://rdflib.github.io/sparqlwrapper/',
|
||||
'Documentation': 'https://rdflib.github.io/sparqlwrapper/doc/',
|
||||
@@ -1,7 +1,18 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Jan 27 11:12:21 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 2.0.0:
|
||||
* Ported codebase to Python 3. Dropped support for Python 2
|
||||
* Removed nosetest in favour of unittest
|
||||
* Added a CLI: ``rqw``
|
||||
* Updated for RDFLib >= 6.1.1
|
||||
* Added type hints
|
||||
- drop no-2to3.patch (obsolete)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 7 11:58:04 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- add no-2to3.patch for better compatibility with newer setuptools
|
||||
- add no-2to3.patch for better compatibility with newer setuptools
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 11 17:00:28 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-SPARQLWrapper
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,19 +16,22 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-SPARQLWrapper
|
||||
Version: 1.8.5
|
||||
Version: 2.0.0
|
||||
Release: 0
|
||||
Summary: SPARQL Endpoint interface to Python
|
||||
License: W3C
|
||||
URL: https://rdflib.dev/sparqlwrapper/
|
||||
Source: https://files.pythonhosted.org/packages/source/S/SPARQLWrapper/SPARQLWrapper-%{version}.tar.gz
|
||||
Patch1: no-2to3.patch
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-rdflib >= 4.0
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -39,22 +42,29 @@ format.
|
||||
|
||||
%prep
|
||||
%setup -q -n SPARQLWrapper-%{version}
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/rqw
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
#%%pytest test
|
||||
|
||||
%post
|
||||
%python_install_alternative rqw
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative rqw
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE.txt
|
||||
%doc README.rst AUTHORS.md
|
||||
%{python_sitelib}/SPARQLWrapper/
|
||||
%{python_sitelib}/SPARQLWrapper-%{version}-py*.egg-info
|
||||
%python_alternative %{_bindir}/rqw
|
||||
%{python_sitelib}/SPARQLWrapper
|
||||
%{python_sitelib}/SPARQLWrapper-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user