!18 修改pytest-conv py3到pyproject
From: @luolu12 Reviewed-by: @caodongxia Signed-off-by: @caodongxia
This commit is contained in:
commit
f1d9ebc0b6
@ -2,7 +2,7 @@
|
||||
|
||||
Name: python-pytest-cov
|
||||
Version: 4.1.0
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: Pytest plugin for measuring coverage
|
||||
License: MIT
|
||||
URL: https://pypi.org/project/pytest-cov/
|
||||
@ -10,6 +10,12 @@ Source0: https://files.pythonhosted.org/packages/61/41/e04652684997255592
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-pip
|
||||
BuildRequires: python3-wheel
|
||||
BuildRequires: python3-hatchling
|
||||
|
||||
%description
|
||||
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.
|
||||
@ -43,10 +49,10 @@ or through coverage’s config file.
|
||||
%autosetup -n pytest-cov-4.1.0 -p1
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
%pyproject_build
|
||||
|
||||
%install
|
||||
%py3_install
|
||||
%pyproject_install
|
||||
|
||||
%check
|
||||
%if %{with test}
|
||||
@ -58,6 +64,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib}:$PWD/tests py.test-%{python3_version}
|
||||
%{python3_sitelib}/*
|
||||
|
||||
%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
|
||||
- update to 4.1.0
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user