!13 修复python-setuptools升级导致python-logutils构建失败

From: @starlet-dx 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
This commit is contained in:
openeuler-ci-bot 2023-05-23 11:56:13 +00:00 committed by Gitee
commit 8d25f327b6
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -5,7 +5,7 @@ These handlers are designed for Python standard library's logging package.
Name: python-logutils
Version: 0.3.5
Release: 9
Release: 10
License: BSD
Summary: Handlers for Python library's logging package
URL: https://pypi.io/project/logutils
@ -14,6 +14,8 @@ Source0: https://pypi.io/packages/source/l/logutils/logutils-%{version}.t
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-redis
BuildRequires: redis
%description %_description
@ -45,7 +47,9 @@ rm -rf %{py2dir}
%{__python3} setup.py install -O1 --skip-build --root=%{buildroot}
%check
%{__python3} setup.py test
export PYTHONPATH=%{buildroot}%{python3_sitelib}
%{__python3} -m unittest discover -v tests
%files -n python3-logutils
%license LICENSE.txt
@ -57,6 +61,9 @@ rm -rf %{py2dir}
%doc doc/
%changelog
* Tue May 23 2023 yaoxin <yao_xin001@hoperun.com> - 0.3.5-10
- Fix compilation failure due to python-setuptools update to 66.0
* Mon Sep 27 2021 caodongxia <caodongxia@huawei.com> - 0.3.5-9
- Provides python-logutils