Accepting request 958233 from devel:languages:python

- add no2to3.patch for compatibility with newer setuptools

OBS-URL: https://build.opensuse.org/request/show/958233
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-funcparserlib?expand=0&rev=8
This commit is contained in:
Dominique Leuenberger 2022-03-01 16:03:45 +00:00 committed by Git OBS Bridge
commit 20e05e8195
3 changed files with 21 additions and 1 deletions

13
no2to3.patch Normal file
View File

@ -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',

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Mar 1 09:44:35 UTC 2022 - Dirk Müller <dmueller@suse.com>
- add no2to3.patch for compatibility with newer setuptools
-------------------------------------------------------------------
Mon Nov 8 14:50:25 UTC 2021 - Dirk Müller <dmueller@suse.com>

View File

@ -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