python-pytest-cov/python-pytest-cov.spec

73 lines
2.5 KiB
RPMSpec

#
# spec file for package python-pytest-cov
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pytest-cov
Version: 2.4.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.io/packages/source/p/pytest-cov/pytest-cov-%{version}.tar.gz
BuildRequires: %{python_module cov-core >= 1.14.0}
BuildRequires: %{python_module coverage >= 3.7.1}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module process-tests}
BuildRequires: %{python_module py >= 1.4.22}
BuildRequires: %{python_module pytest >= 2.6.0}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module virtualenv}
BuildRequires: python-rpm-macros
Requires: python-cov-core >= 1.14.0
Requires: python-coverage >= 3.7.1
Requires: python-pytest >= 2.6.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%python_subpackages
%description
This plugin produces coverage reports. It supports centralised testing
and distributed testing in both load and each modes. It also supports
coverage of subprocesses.
All features offered by the coverage package should be available, either
through pytest-cov or through coverage's config file.
%prep
%setup -q -n pytest-cov-%{version}
%build
%python_build
%install
%python_install
# could not fix this
#%%check
#%%python_expand PYTHONPATH=%%{buildroot}%%{$python_sitelib}:$PWD/tests %%python_exec %%{_bindir}/py.test
%files %{python_files}
%defattr(-,root,root,-)
%doc AUTHORS.rst CHANGELOG.rst LICENSE README.rst
%{python_sitelib}/pytest-cov.pth
%{python_sitelib}/pytest_cov
%{python_sitelib}/pytest_cov-%{version}-py%{python_version}.egg-info
%changelog