!4 修改trio py3到pyproject

From: @luolu12 
Reviewed-by: @xiyuanwang 
Signed-off-by: @xiyuanwang
This commit is contained in:
openeuler-ci-bot 2023-07-03 02:43:08 +00:00 committed by Gitee
commit a49a6111ad
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -26,7 +26,9 @@ BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-hatchling
# General requires
BuildRequires: python3-attrs
BuildRequires: python3-sortedcontainers
@ -55,10 +57,10 @@ Concurrency is complicated; we try to make it easy to get things right.
%autosetup -n trio-%{version}
%build
%py3_build
%pyproject_build
%install
%py3_install
%pyproject_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
@ -87,14 +89,14 @@ mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%files -n python3-trio -f filelist.lst
%dir %{python3_sitelib}/*
%{python3_sitelib}/trio
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Fri Jun 30 2023 luolu12 <luluoc@isoftstone.com> - 0.22.0-1
- Init package python3-trio of version 0.22.0
- Upgrade package python3-trio of version 0.22.0
* Thu Jul 21 2022 renliang16 <renliang@uniontech.com> - 0.14.0-1
- Init package python3-trio of version 0.14.0