diff --git a/Modify-late_version-return-to-str.patch b/Modify-late_version-return-to-str.patch new file mode 100644 index 0000000..abdf827 --- /dev/null +++ b/Modify-late_version-return-to-str.patch @@ -0,0 +1,26 @@ +From de3ec76aba458b2b2ba58d1707dc9ecc82387eab Mon Sep 17 00:00:00 2001 +From: yangchenguang +Date: Thu, 14 Mar 2024 17:46:00 +0800 +Subject: [PATCH] Modify late_version return to str + +Signed-off-by: yangchenguang +--- + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 416afbe..fbaafa7 100755 +--- a/setup.py ++++ b/setup.py +@@ -18,7 +18,7 @@ class late_version: + return str(self) + other + def replace(self, old, new): + return str(self).replace(old, new) +-VERSION = late_version() ++VERSION = str(late_version()) + + NAME = 'unittest2' + +-- +2.39.1 + diff --git a/python-unittest2.spec b/python-unittest2.spec index 1adcd26..9186d73 100644 --- a/python-unittest2.spec +++ b/python-unittest2.spec @@ -1,6 +1,6 @@ Name: python-unittest2 Version: 1.1.0 -Release: 18 +Release: 19 Summary: New features added to the unittest testing framework in Python 2.7 and onwards License: BSD URL: http://pypi.python.org/pypi/unittest2 @@ -9,6 +9,7 @@ Source0: https://pypi.python.org/packages/source/u/unittest2/unittest2-%{ Patch0000: unittest2-1.1.0-remove-argparse-from-requires.patch Patch0001: unittest2-1.1.0-backport-tests-from-py3.5.patch Patch0002: fix-collections.MutableMapping-no-support-for-python-3.10.patch +Patch0003: Modify-late_version-return-to-str.patch BuildArch: noarch %description @@ -52,6 +53,9 @@ cd - %{python3_sitelib}/unittest2* %changelog +* Thu Mar 14 2024 yangchenguang - 1.1.0-19 +- fix build error : modify late_version return to str + * Tue Mar 22 2022 wulei - 1.1.0-18 - Fix collections.MutableMapping no support for python 3.10