!5 [sync] PR-4: fix build failed for python-setuptools-59.4

From: @openeuler-sync-bot 
Reviewed-by: @myeuler 
Signed-off-by: @myeuler
This commit is contained in:
openeuler-ci-bot 2022-03-31 02:30:19 +00:00 committed by Gitee
commit 4e6669f6cb
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: python-parse_type
Version: 0.4.2
Release: 3
Release: 4
Summary: Make parse types building more easier by parse module
License: BSD
URL: http://pypi.python.org/pypi/parse_type
@ -38,6 +38,7 @@ rm -rf python3/*.egg-info
%build
cd python3
sed -i -e '/use_2to3/s/\S.*/pass/' setup.py
%py3_build
%install
@ -55,6 +56,9 @@ cd python3
%{python3_sitelib}/{parse_type-%{version}-*.egg-info/,parse_type/}
%changelog
* Thu Jan 06 2022 wangkai <wangkai385@huawei.com> - 0.4.2-4
- fix build failed for python-setuptools-59.4
* Fri Sep 11 2020 wangxiao <wangxiao65@huawei.com> - 0.4.2-3
- remove python2 support
* Fri Dec 13 2019 yanzhihua <yanzhihua4@huawei.com> - 0.4.2-2