From 5275635eeefb777beaab9d8c96bd5504efe70de1a5296b8dc2817f25331b52d1 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 7 Mar 2022 11:58:28 +0000 Subject: [PATCH] - add no-2to3.patch for better compatibility with newer setuptools OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-SPARQLWrapper?expand=0&rev=23 --- no-2to3.patch | 13 +++++++++++++ python-SPARQLWrapper.changes | 5 +++++ python-SPARQLWrapper.spec | 6 ++++-- 3 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 no-2to3.patch diff --git a/no-2to3.patch b/no-2to3.patch new file mode 100644 index 0000000..426027a --- /dev/null +++ b/no-2to3.patch @@ -0,0 +1,13 @@ +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/', diff --git a/python-SPARQLWrapper.changes b/python-SPARQLWrapper.changes index 09b31b8..637c662 100644 --- a/python-SPARQLWrapper.changes +++ b/python-SPARQLWrapper.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Mar 7 11:58:04 UTC 2022 - Dirk Müller + +- add no-2to3.patch for better compatibility with newer setuptools + ------------------------------------------------------------------- Wed Mar 11 17:00:28 UTC 2020 - Tomáš Chvátal diff --git a/python-SPARQLWrapper.spec b/python-SPARQLWrapper.spec index 43124ec..b19b0b2 100644 --- a/python-SPARQLWrapper.spec +++ b/python-SPARQLWrapper.spec @@ -1,7 +1,7 @@ # # spec file for package python-SPARQLWrapper # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -22,8 +22,9 @@ Version: 1.8.5 Release: 0 Summary: SPARQL Endpoint interface to Python License: W3C -URL: http://sparql-wrapper.sourceforge.net/ +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 setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -38,6 +39,7 @@ format. %prep %setup -q -n SPARQLWrapper-%{version} +%patch1 -p1 %build %python_build