2018-11-22 11:37:31 +01:00
|
|
|
#
|
|
|
|
# spec file for package python-pytest-html
|
|
|
|
#
|
2024-05-17 11:09:31 +02:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
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
|
|
|
|
|
|
|
|
2023-05-09 23:48:21 +02:00
|
|
|
%{?sle15_python_module_pythons}
|
2018-11-22 11:37:31 +01:00
|
|
|
Name: python-pytest-html
|
2024-05-17 11:09:31 +02:00
|
|
|
Version: 4.1.1
|
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
|
|
|
|
URL: https://github.com/pytest-dev/pytest-html
|
2023-08-07 17:54:25 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/pytest-html/pytest_html-%{version}.tar.gz
|
2024-05-17 11:09:31 +02:00
|
|
|
# npm install --package-lock-only --legacy-peer-deps --ignore-scripts
|
|
|
|
Source10: package-lock.json
|
|
|
|
Source11: node_modules.spec.inc
|
|
|
|
%include %{_sourcedir}/node_modules.spec.inc
|
2023-08-08 09:49:22 +02:00
|
|
|
# PATCH-FIX-OPENSUSE drop-assertpy-dep.patch
|
2023-08-07 17:54:25 +02:00
|
|
|
Patch1: drop-assertpy-dep.patch
|
|
|
|
BuildRequires: %{python_module hatch-vcs}
|
|
|
|
BuildRequires: %{python_module hatchling}
|
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
BuildRequires: %{python_module wheel}
|
2018-11-22 11:37:31 +01:00
|
|
|
BuildRequires: fdupes
|
2024-05-17 11:09:31 +02:00
|
|
|
BuildRequires: local-npm-registry
|
2023-08-07 17:54:25 +02:00
|
|
|
BuildRequires: npm
|
2018-11-22 11:47:10 +01:00
|
|
|
BuildRequires: python-rpm-macros
|
2023-08-07 17:54:25 +02:00
|
|
|
Requires: python-Jinja2 >= 3.0.0
|
|
|
|
Requires: python-pytest >= 7.0.0
|
|
|
|
Requires: python-pytest-metadata >= 3.0.0
|
2018-11-22 11:37:31 +01:00
|
|
|
BuildArch: noarch
|
2018-11-22 11:47:10 +01:00
|
|
|
# SECTION test requirements
|
2023-08-07 17:54:25 +02:00
|
|
|
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}
|
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
|
2021-01-19 00:18:43 +01:00
|
|
|
A plugin for pytest that generates a HTML report for test results.
|
2018-11-22 11:37:31 +01:00
|
|
|
|
|
|
|
%prep
|
2024-05-17 11:09:31 +02:00
|
|
|
%autosetup -p1 -n pytest_html-%{version}
|
|
|
|
rm package-lock.json
|
|
|
|
local-npm-registry %{_sourcedir} install --also=dev
|
|
|
|
sed -i '/npm ci/d' scripts/npm.py
|
2018-11-22 11:37:31 +01:00
|
|
|
|
|
|
|
%build
|
2023-08-07 17:54:25 +02:00
|
|
|
%pyproject_wheel
|
2018-11-22 11:37:31 +01:00
|
|
|
|
|
|
|
%install
|
2023-08-07 17:54:25 +02:00
|
|
|
%pyproject_install
|
2018-11-22 11:37:31 +01:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2018-11-22 11:47:10 +01:00
|
|
|
|
2018-11-22 11:37:31 +01:00
|
|
|
%check
|
2019-09-16 09:42:12 +02:00
|
|
|
export LANG=en_US.UTF-8
|
2023-08-07 17:54:25 +02:00
|
|
|
%pytest --ignore testing/test_integration.py --ignore testing/test_e2e.py
|
2018-11-22 11:37:31 +01:00
|
|
|
|
|
|
|
%files %{python_files}
|
2018-11-22 11:47:10 +01:00
|
|
|
%license LICENSE
|
2022-11-30 11:45:43 +01:00
|
|
|
%doc docs/changelog.rst README.rst
|
2021-01-19 00:18:43 +01:00
|
|
|
%{python_sitelib}/pytest_html
|
|
|
|
%{python_sitelib}/pytest_html-%{version}*-info
|
2018-11-22 11:37:31 +01:00
|
|
|
|
|
|
|
%changelog
|