From 1756d12b6b4981cf5fcbbd1ffaa7328a34003e2e738eddc37bfdd876889b6675 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 1 Mar 2022 09:44:50 +0000 Subject: [PATCH] - add no2to3.patch for compatibility with newer setuptools OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-funcparserlib?expand=0&rev=17 --- no2to3.patch | 13 +++++++++++++ python-funcparserlib.changes | 5 +++++ python-funcparserlib.spec | 4 +++- 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 no2to3.patch diff --git a/no2to3.patch b/no2to3.patch new file mode 100644 index 0000000..35c3774 --- /dev/null +++ b/no2to3.patch @@ -0,0 +1,13 @@ +--- funcparserlib-0.3.6/setup.py ++++ funcparserlib-0.3.6/setup.py +@@ -4,10 +4,6 @@ + import sys + + extra = {} +-if sys.version_info >= (3,): +- extra['use_2to3'] = True +- +- + setup( + name='funcparserlib', + version='0.3.6', diff --git a/python-funcparserlib.changes b/python-funcparserlib.changes index e905c9c..59bc590 100644 --- a/python-funcparserlib.changes +++ b/python-funcparserlib.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Mar 1 09:44:35 UTC 2022 - Dirk Müller + +- add no2to3.patch for compatibility with newer setuptools + ------------------------------------------------------------------- Mon Nov 8 14:50:25 UTC 2021 - Dirk Müller diff --git a/python-funcparserlib.spec b/python-funcparserlib.spec index ff38259..51994ea 100644 --- a/python-funcparserlib.spec +++ b/python-funcparserlib.spec @@ -1,7 +1,7 @@ # # spec file for package python-funcparserlib # -# Copyright (c) 2021 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 @@ -25,6 +25,7 @@ License: MIT Group: Development/Languages/Python URL: https://github.com/vlasovskikh/funcparserlib Source: https://files.pythonhosted.org/packages/source/f/funcparserlib/funcparserlib-%{version}.tar.gz +Patch1: no2to3.patch BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six} @@ -55,6 +56,7 @@ as well as a tiny lexer generator for token position tracking. %prep %setup -q -n funcparserlib-%{version} +%patch1 -p1 python-modernize -nw funcparserlib/ sed -i "s/ur'/r'/" funcparserlib/tests/*.py