forked from pool/python-pytest-cov
Accepting request 340454 from devel:languages:python
1 OBS-URL: https://build.opensuse.org/request/show/340454 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-cov?expand=0&rev=6
This commit is contained in:
@@ -17,20 +17,23 @@
|
||||
|
||||
|
||||
Name: python-pytest-cov
|
||||
Version: 1.8.1
|
||||
Version: 2.2.0
|
||||
Release: 0
|
||||
Summary: Pytest plugin for coverage reporting
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/schlamar/pytest-cov
|
||||
Source: https://pypi.python.org/packages/source/p/pytest-cov/pytest-cov-%{version}.tar.gz
|
||||
BuildRequires: python-coverage >= 3.7.1
|
||||
BuildRequires: python-cov-core >= 1.14.0
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-pytest >= 2.6.0
|
||||
BuildRequires: python-setuptools
|
||||
# Test requirements:
|
||||
BuildRequires: python-process-tests
|
||||
BuildRequires: python-py >= 1.4.22
|
||||
BuildRequires: python-virtualenv
|
||||
Requires: python-coverage >= 3.7.1
|
||||
Requires: python-cov-core >= 1.14.0
|
||||
Requires: python-pytest >= 2.6.0
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
@@ -57,11 +60,13 @@ python setup.py build
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
|
||||
%check
|
||||
python test_pytest_cov.py
|
||||
pushd tests
|
||||
PYTHONPATH=%{buildroot}%{python_sitelib} python test_pytest_cov.py
|
||||
popd
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE.txt README.rst
|
||||
%doc AUTHORS.rst CHANGELOG.rst LICENSE README.rst
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user