File python-pytest-cov.spec of Package python-pytest-cov.12428
#
# spec file for package python-pytest-cov
#
# Copyright (c) 2014 SUSE LINUX Products 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: 1.7.0
Release: 0
License: MIT
Summary: Pytest plugin for coverage reporting
Url: http://bitbucket.org/memedough/pytest-cov/overview
Group: Development/Languages/Python
Source: https://pypi.io/packages/source/p/pytest-cov/pytest-cov-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module cov-core >= 1.12}
BuildRequires: %{python_module pytest >= 2.2.3}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
# Test requirements:
BuildRequires: %{python_module py}
BuildRequires: %{python_module virtualenv}
Requires: python-pytest >= 2.2.3
Requires: python-cov-core >= 1.12
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
%check
%python_exec test_pytest_cov.py
%files %{python_files}
%defattr(-,root,root,-)
%doc LICENSE.txt README.rst
%{python_sitelib}/*
%changelog