fix build error : modify late_version return to str
Signed-off-by: yangchenguang <yangchenguang@kylinsec.com.cn> (cherry picked from commit 2ea534991edc889586a689c60e6e8896f1479a32)
This commit is contained in:
parent
5f2d6c6b7e
commit
8027fb7ad5
26
Modify-late_version-return-to-str.patch
Normal file
26
Modify-late_version-return-to-str.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
From de3ec76aba458b2b2ba58d1707dc9ecc82387eab Mon Sep 17 00:00:00 2001
|
||||||
|
From: yangchenguang <yangchenguang@kylinsec.com.cn>
|
||||||
|
Date: Thu, 14 Mar 2024 17:46:00 +0800
|
||||||
|
Subject: [PATCH] Modify late_version return to str
|
||||||
|
|
||||||
|
Signed-off-by: yangchenguang <yangchenguang@kylinsec.com.cn>
|
||||||
|
---
|
||||||
|
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
|
||||||
|
|
||||||
@ -1,6 +1,6 @@
|
|||||||
Name: python-unittest2
|
Name: python-unittest2
|
||||||
Version: 1.1.0
|
Version: 1.1.0
|
||||||
Release: 18
|
Release: 19
|
||||||
Summary: New features added to the unittest testing framework in Python 2.7 and onwards
|
Summary: New features added to the unittest testing framework in Python 2.7 and onwards
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: http://pypi.python.org/pypi/unittest2
|
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
|
Patch0000: unittest2-1.1.0-remove-argparse-from-requires.patch
|
||||||
Patch0001: unittest2-1.1.0-backport-tests-from-py3.5.patch
|
Patch0001: unittest2-1.1.0-backport-tests-from-py3.5.patch
|
||||||
Patch0002: fix-collections.MutableMapping-no-support-for-python-3.10.patch
|
Patch0002: fix-collections.MutableMapping-no-support-for-python-3.10.patch
|
||||||
|
Patch0003: Modify-late_version-return-to-str.patch
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -52,6 +53,9 @@ cd -
|
|||||||
%{python3_sitelib}/unittest2*
|
%{python3_sitelib}/unittest2*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Mar 14 2024 yangchenguang <yangchenguang@kylinsec.com.cn> - 1.1.0-19
|
||||||
|
- fix build error : modify late_version return to str
|
||||||
|
|
||||||
* Tue Mar 22 2022 wulei <wulei80@huawei.com> - 1.1.0-18
|
* Tue Mar 22 2022 wulei <wulei80@huawei.com> - 1.1.0-18
|
||||||
- Fix collections.MutableMapping no support for python 3.10
|
- Fix collections.MutableMapping no support for python 3.10
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user