!3 修复python-bunch build失败问题

From: @tzing_t 
Reviewed-by: @xiyuanwang 
Signed-off-by: @xiyuanwang
This commit is contained in:
openeuler-ci-bot 2023-08-11 01:07:36 +00:00 committed by Gitee
commit 66849f4335
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 18 additions and 1 deletions

13
bunch.patch Normal file
View File

@ -0,0 +1,13 @@
diff --git a/setup.py b/setup.py
index b10f09e..278ee21 100644
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,7 @@ from setuptools import setup
HERE = abspath(dirname(__file__))
readme = open(join(HERE, 'README.rst')).read()
-package_file = open(join(HERE, 'bunch/__init__.py'), 'rU')
+package_file = open(join(HERE, 'bunch/__init__.py'), 'r')
__version__ = re.sub(
r".*\b__version__\s+=\s+'([^']+)'.*",
r'\1',

View File

@ -1,11 +1,12 @@
%global _empty_manifest_terminate_build 0
Name: python-bunch
Version: 1.0.1
Release: 2
Release: 3
Summary: A dot-accessible dictionary (a la JavaScript objects)
License: MIT
URL: http://github.com/dsc/bunch
Source0: https://files.pythonhosted.org/packages/cc/56/ceef9c8c12600a1ceb3dcefdd9e5094c72fbdba0c3af785b4a69205022c1/bunch-1.0.1.zip
Patch001: bunch.patch
BuildArch: noarch
%description
Bunch is a dictionary that supports attribute-style access, a la JavaScript.
@ -71,6 +72,9 @@ mv %{buildroot}/doclist.lst .
%{_docdir}/*
%changelog
* Thu Aug 10 2023 zhengting <tzing0013@gmail.com> - 1.0.1-3
- DESC: fix conflict with bunch
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 1.0.1-2
- DESC: delete -S git from %autosetup