2018-11-22 11:37:31 +01:00
|
|
|
#
|
|
|
|
# spec file for package python-pytest-html
|
|
|
|
#
|
2019-02-14 14:40:43 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2018-11-22 11:37:31 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-11-22 11:47:10 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
2018-11-22 11:37:31 +01:00
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2019-09-20 11:49:50 +02:00
|
|
|
%define skip_python2 1
|
2018-11-22 11:37:31 +01:00
|
|
|
Name: python-pytest-html
|
2019-09-20 11:49:50 +02:00
|
|
|
Version: 2.0.0
|
2018-11-22 11:37:31 +01:00
|
|
|
Release: 0
|
2019-08-12 17:43:34 +02:00
|
|
|
Summary: Pytest plugin for generating HTML reports
|
2018-11-22 11:47:10 +01:00
|
|
|
License: MPL-2.0
|
2018-11-22 11:37:31 +01:00
|
|
|
Group: Development/Languages/Python
|
2018-11-22 11:47:10 +01:00
|
|
|
URL: https://github.com/pytest-dev/pytest-html
|
2018-11-22 11:37:31 +01:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/pytest-html/pytest-html-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module setuptools_scm}
|
2018-11-22 11:47:10 +01:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2018-11-22 11:37:31 +01:00
|
|
|
BuildRequires: fdupes
|
2018-11-22 11:47:10 +01:00
|
|
|
BuildRequires: python-rpm-macros
|
2019-02-27 09:14:11 +01:00
|
|
|
Requires: python-ansi2html
|
2018-11-22 11:37:31 +01:00
|
|
|
Requires: python-pytest >= 3.0
|
|
|
|
Requires: python-pytest-metadata
|
|
|
|
BuildArch: noarch
|
2018-11-22 11:47:10 +01:00
|
|
|
# SECTION test requirements
|
2019-02-14 14:40:43 +01:00
|
|
|
BuildRequires: %{python_module ansi2html}
|
2018-11-22 11:47:10 +01:00
|
|
|
BuildRequires: %{python_module pytest >= 3.0}
|
|
|
|
BuildRequires: %{python_module pytest-metadata}
|
2019-02-14 14:40:43 +01:00
|
|
|
BuildRequires: %{python_module pytest-mock}
|
|
|
|
BuildRequires: %{python_module pytest-rerunfailures}
|
2019-02-20 13:24:44 +01:00
|
|
|
BuildRequires: %{python_module pytest-xdist}
|
2018-11-22 11:47:10 +01:00
|
|
|
# /SECTION
|
2018-11-22 11:37:31 +01:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
pytest plugin for generating HTML reports
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n pytest-html-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2018-11-22 11:47:10 +01:00
|
|
|
|
2018-11-22 11:37:31 +01:00
|
|
|
%check
|
2019-08-12 17:43:34 +02:00
|
|
|
export PYTHONDONTWRITEBYTECODE=1
|
2019-09-16 09:42:12 +02:00
|
|
|
export LANG=en_US.UTF-8
|
2019-08-12 17:43:34 +02:00
|
|
|
%pytest
|
2018-11-22 11:37:31 +01:00
|
|
|
|
|
|
|
%files %{python_files}
|
2018-11-22 11:47:10 +01:00
|
|
|
%license LICENSE
|
|
|
|
%doc CHANGES.rst README.rst
|
2018-11-22 11:37:31 +01:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|