python-pytest-html/python-pytest-html.spec
Daniel Garcia 87b3e3fedc - Remove python_module macro definition
- Add python-py dependency
- Update to 3.2.0
  * Explicitly add py.xml dependency.
    Thanks to @smartEBL for the PR
  * Implement the visible URL query parameter to control visibility of test
    results on page load. (#399)
    Thanks to @TheCorp for reporting and @gnikonorov for the fix
  * Make the report tab title reflect the report name. (#412)
    Thanks to @gnikonorov for the PR
  * Implement environment_table_redact_list to allow for redaction of
    environment table values. (#233)
    Thanks to @fenchu for reporting and @gnikonorov for the PR

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-html?expand=0&rev=29
2022-11-30 10:45:43 +00:00

71 lines
2.1 KiB
RPMSpec

#
# spec file for package python-pytest-html
#
# Copyright (c) 2022 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%define skip_python2 1
Name: python-pytest-html
Version: 3.2.0
Release: 0
Summary: Pytest plugin for generating HTML reports
License: MPL-2.0
URL: https://github.com/pytest-dev/pytest-html
Source: https://files.pythonhosted.org/packages/source/p/pytest-html/pytest-html-%{version}.tar.gz
BuildRequires: %{python_module pytest >= 5.0}
BuildRequires: %{python_module pytest-metadata}
BuildRequires: %{python_module py}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-ansi2html
Requires: python-py
Requires: python-pytest >= 5.0
Requires: python-pytest-metadata
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module ansi2html}
BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module pytest-rerunfailures}
BuildRequires: %{python_module pytest-xdist}
# /SECTION
%python_subpackages
%description
A plugin for pytest that generates a HTML report for test results.
%prep
%setup -q -n pytest-html-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export LANG=en_US.UTF-8
%pytest
%files %{python_files}
%license LICENSE
%doc docs/changelog.rst README.rst
%{python_sitelib}/pytest_html
%{python_sitelib}/pytest_html-%{version}*-info
%changelog