diff --git a/no2to3.patch b/no2to3.patch new file mode 100644 index 0000000..5593e95 --- /dev/null +++ b/no2to3.patch @@ -0,0 +1,13 @@ +Index: behave-1.2.6/setup.py +=================================================================== +--- behave-1.2.6.orig/setup.py ++++ behave-1.2.6/setup.py +@@ -100,8 +100,6 @@ setup( + "pylint", + ], + }, +- # MAYBE-DISABLE: use_2to3 +- use_2to3= bool(python_version >= 3.0), + license="BSD", + classifiers=[ + "Development Status :: 4 - Beta", diff --git a/python-behave.changes b/python-behave.changes index f28b583..0359804 100644 --- a/python-behave.changes +++ b/python-behave.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Mar 1 09:46:46 UTC 2022 - Dirk Müller + +- add no2to3.patch for compatibility with newer setuptools + ------------------------------------------------------------------- Wed Sep 8 06:52:58 UTC 2021 - Steve Kowalik diff --git a/python-behave.spec b/python-behave.spec index b23dd67..cc662b2 100644 --- a/python-behave.spec +++ b/python-behave.spec @@ -1,7 +1,7 @@ # # spec file for package python-behave # -# 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: BSD-2-Clause Group: Development/Languages/Python URL: https://github.com/behave/behave Source: https://files.pythonhosted.org/packages/source/b/behave/behave-%{version}.tar.gz +Patch1: no2to3.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -73,6 +74,7 @@ code. %prep %setup -q -n behave-%{version} +%patch1 -p1 %build %python_build