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:
commit
20e05e8195
13
no2to3.patch
Normal file
13
no2to3.patch
Normal 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',
|
@ -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>
|
Mon Nov 8 14:50:25 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-funcparserlib
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -25,6 +25,7 @@ License: MIT
|
|||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/vlasovskikh/funcparserlib
|
URL: https://github.com/vlasovskikh/funcparserlib
|
||||||
Source: https://files.pythonhosted.org/packages/source/f/funcparserlib/funcparserlib-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/f/funcparserlib/funcparserlib-%{version}.tar.gz
|
||||||
|
Patch1: no2to3.patch
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module six}
|
BuildRequires: %{python_module six}
|
||||||
@ -55,6 +56,7 @@ as well as a tiny lexer generator for token position tracking.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n funcparserlib-%{version}
|
%setup -q -n funcparserlib-%{version}
|
||||||
|
%patch1 -p1
|
||||||
python-modernize -nw funcparserlib/
|
python-modernize -nw funcparserlib/
|
||||||
sed -i "s/ur'/r'/" funcparserlib/tests/*.py
|
sed -i "s/ur'/r'/" funcparserlib/tests/*.py
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user