!3 Remove python2-pytest-cov
From: @wang_yue111 Reviewed-by: @xiezhipeng1 Signed-off-by: @xiezhipeng1
This commit is contained in:
commit
f4ed99089a
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: python-pytest-cov
|
Name: python-pytest-cov
|
||||||
Version: 2.5.1
|
Version: 2.5.1
|
||||||
Release: 7
|
Release: 8
|
||||||
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/
|
||||||
@ -20,25 +20,6 @@ This plugin produces coverage reports. Compared to just using coverage run this
|
|||||||
All features offered by the coverage package should work, either through pytest-cov’s command line options
|
All features offered by the coverage package should work, either through pytest-cov’s command line options
|
||||||
or through coverage’s config file.
|
or through coverage’s config file.
|
||||||
|
|
||||||
%package -n python2-pytest-cov
|
|
||||||
Summary: Pytest plugin for measuring coverage
|
|
||||||
BuildRequires: python2-devel python2-setuptools python2-pytest python2-coverage >= 3.7.1
|
|
||||||
%if %{with test}
|
|
||||||
BuildRequires: python2-process-tests python2-six python2-virtualenv
|
|
||||||
%endif
|
|
||||||
Requires: python2-pytest python2-coverage >= 3.7.1
|
|
||||||
%{?python_provide:%python_provide python2-pytest-cov}
|
|
||||||
|
|
||||||
%description -n python2-pytest-cov
|
|
||||||
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.
|
|
||||||
* Xdist support: you can use all of pytest-xdist’s features and still get coverage.
|
|
||||||
* Consistent pytest behavior. If you run coverage run -m pytest you will have slightly different
|
|
||||||
sys.path(CWD will be in it, unlike when running pytest).
|
|
||||||
|
|
||||||
All features offered by the coverage package should work, either through pytest-cov’s command line options
|
|
||||||
or through coverage’s config file.
|
|
||||||
|
|
||||||
%package -n python3-pytest-cov
|
%package -n python3-pytest-cov
|
||||||
Summary: Pytest plugin for measuring coverage
|
Summary: Pytest plugin for measuring coverage
|
||||||
BuildRequires: python3-devel python3-setuptools python3-pytest python3-coverage >= 3.7.1
|
BuildRequires: python3-devel python3-setuptools python3-pytest python3-coverage >= 3.7.1
|
||||||
@ -62,27 +43,23 @@ or through coverage’s config file.
|
|||||||
%autosetup -n pytest-cov-2.5.1 -p1
|
%autosetup -n pytest-cov-2.5.1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py3_install
|
%py3_install
|
||||||
%py2_install
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
PYTHONPATH=%{buildroot}%{python2_sitelib}:$PWD/tests py.test-%{python2_version} -vv || :
|
|
||||||
PYTHONPATH=%{buildroot}%{python3_sitelib}:$PWD/tests py.test-%{python3_version} -vv || :
|
PYTHONPATH=%{buildroot}%{python3_sitelib}:$PWD/tests py.test-%{python3_version} -vv || :
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files -n python2-pytest-cov
|
|
||||||
%doc AUTHORS.rst CHANGELOG.rst CONTRIBUTING.rst README.rst LICENSE
|
|
||||||
%{python2_sitelib}/*
|
|
||||||
|
|
||||||
%files -n python3-pytest-cov
|
%files -n python3-pytest-cov
|
||||||
%doc AUTHORS.rst CHANGELOG.rst CONTRIBUTING.rst README.rst LICENSE
|
%doc AUTHORS.rst CHANGELOG.rst CONTRIBUTING.rst README.rst LICENSE
|
||||||
%{python3_sitelib}/*
|
%{python3_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri 11 Sep 2020 wangyue <wangyue92@huawei.com> - 2.5.1-8
|
||||||
|
- Remove python2-pytest-cov
|
||||||
|
|
||||||
* Wed Jan 8 2020 lingsheng <lingsheng@huawei.com> - 2.5.1-7
|
* Wed Jan 8 2020 lingsheng <lingsheng@huawei.com> - 2.5.1-7
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user