Files
python-pytest-html/python-pytest-html.spec
Daniel Garcia e4ee7cad4b - Refresh patches and node_modules.tar.gz
- Update to 4.0.0:
  * Feat: Add duration format hook (#724) @BeyondEvil
  * Chore: Drop support for python 3.7 (#723) @BeyondEvil
  * Add expander to log output (#721) @drRedflint
  * Fix: Broken sorting for custom columns (#715) @BeyondEvil
  * Chore: Stop running scheduled tests on forks (#720) @BeyondEvil
  * Chore: Fix tox (#718) @BeyondEvil
  * use max height instead of fixed height (#706) @drRedflint
  * if only one item in gallery, remove navigation (#705) @drRedflint
  * Chore: Support legacy pytest-metadata (#714) @BeyondEvil
  * Feature: Untemplate table header (#713) @BeyondEvil
  * Fix: Borken HTML in jinja template (#712) @BeyondEvil
  * Feature: Update json-data-blob (#704) @BeyondEvil
  * Fix: Collapsed state between redraws (#703) @BeyondEvil
  * Feature: Only one collapsed state (#701) @BeyondEvil
  * Chore: General JS cleanup (#700) @BeyondEvil
  * Feature: Template test and duration summary (#698) @BeyondEvil
  * Feature: Template result filters (#697) @BeyondEvil
  * Feature: Template table header (#696) @BeyondEvil
  * Fix: visible query param (#695) @BeyondEvil
  * Fix: Handle legacy py html (#694) @BeyondEvil
  * Fix: Environment table toggle bug (#693) @BeyondEvil
  * Feature: Add initial sort column as ini (#692) @BeyondEvil
  * Fix: Duration sorting (#691) @BeyondEvil
  * Fix: Logging issues with teardown (#690) @BeyondEvil
  * Chore: Simplify results table hooks (#688) @BeyondEvil
  * Enable variable expansion for CSS addons. (#676) @BeyondEvil
  * Fix: results table html hook (#669) @BeyondEvil
  * fix for #671 - Sort icons inverted in next-gen branch (#672) @harmin-parra

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-html?expand=0&rev=36
2023-09-04 09:58:20 +00:00

78 lines
2.5 KiB
RPMSpec

#
# spec file for package python-pytest-html
#
# Copyright (c) 2023 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/
#
%{?sle15_python_module_pythons}
Name: python-pytest-html
Version: 4.0.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
Source1: node_modules.tar.gz
# PATCH-FIX-OPENSUSE vendor-npm.patch
Patch0: vendor-npm.patch
# PATCH-FIX-OPENSUSE drop-assertpy-dep.patch
Patch1: drop-assertpy-dep.patch
BuildRequires: %{python_module hatch-vcs}
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: npm
BuildRequires: python-rpm-macros
Requires: python-Jinja2 >= 3.0.0
Requires: python-pytest >= 7.0.0
Requires: python-pytest-metadata >= 3.0.0
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module Jinja2 >= 3.0.0}
BuildRequires: %{python_module beautifulsoup4}
BuildRequires: %{python_module pytest >= 7.0.0}
BuildRequires: %{python_module pytest-metadata >= 3.0.0}
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
%autosetup -p1 -n pytest_html-%{version} -a1
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export LANG=en_US.UTF-8
%pytest --ignore testing/test_integration.py --ignore testing/test_e2e.py
%files %{python_files}
%license LICENSE
%doc docs/changelog.rst README.rst
%{python_sitelib}/pytest_html
%{python_sitelib}/pytest_html-%{version}*-info
%changelog