!18 修改pytest-conv py3到pyproject

From: @luolu12 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
This commit is contained in:
openeuler-ci-bot 2023-08-09 09:20:57 +00:00 committed by Gitee
commit f1d9ebc0b6
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -2,7 +2,7 @@
Name: python-pytest-cov Name: python-pytest-cov
Version: 4.1.0 Version: 4.1.0
Release: 1 Release: 2
Summary: Pytest plugin for measuring coverage Summary: Pytest plugin for measuring coverage
License: MIT License: MIT
URL: https://pypi.org/project/pytest-cov/ URL: https://pypi.org/project/pytest-cov/
@ -10,6 +10,12 @@ Source0: https://files.pythonhosted.org/packages/61/41/e04652684997255592
BuildArch: noarch BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-hatchling
%description %description
This plugin produces coverage reports. Compared to just using coverage run this plugin does some extras: This plugin produces coverage reports. Compared to just using coverage run this plugin does some extras:
* Subprocess support: you can fork or run stuff in a subprocess and will get covered without any fuss. * Subprocess support: you can fork or run stuff in a subprocess and will get covered without any fuss.
@ -43,10 +49,10 @@ or through coverages config file.
%autosetup -n pytest-cov-4.1.0 -p1 %autosetup -n pytest-cov-4.1.0 -p1
%build %build
%py3_build %pyproject_build
%install %install
%py3_install %pyproject_install
%check %check
%if %{with test} %if %{with test}
@ -58,6 +64,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib}:$PWD/tests py.test-%{python3_version}
%{python3_sitelib}/* %{python3_sitelib}/*
%changelog %changelog
* Wed Jul 12 2023 luluoc <luluoc@isoftstone.com> - 4.1.0-2
- change py3 to pyproject
* Fri Jun 9 2023 chaozhangm <chaozhangm@isoftstone.com> - 4.1.0-1 * Fri Jun 9 2023 chaozhangm <chaozhangm@isoftstone.com> - 4.1.0-1
- update to 4.1.0 - update to 4.1.0