File python-pytest-json-report.spec of Package python-pytest-json-report
#
# spec file for package python-pytest-json-report
#
# Copyright (c) 2025 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/
#
Name: python-pytest-json-report
Version: 1.5.0
Release: 0
Summary: A pytest plugin to report test results as JSON files
License: MIT
URL: https://github.com/numirias/pytest-json-report
Source: https://files.pythonhosted.org/packages/source/p/pytest-json-report/pytest-json-report-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
# SECTION test requirements
BuildRequires: %{python_module pytest >= 3.8.0}
BuildRequires: %{python_module pytest-metadata}
BuildRequires: %{python_module pytest-xdist}
BuildRequires: %{python_module flaky}
# /SECTION
BuildRequires: fdupes
Requires: python-pytest >= 3.8.0
Requires: python-pytest-metadata
BuildArch: noarch
%python_subpackages
%description
A pytest plugin to report test results as JSON files
%prep
%autosetup -p1 -n pytest-json-report-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# some tests fail just on https://github.com/numirias/pytest-json-report/issues/92
skiptests="test_report_keys or test_report_collectors or test_record_property or test_json_metadata or test_environment_via_metadata_plugin or test_warnings or test_report_crash_and_traceback"
%pytest -k "not ($skiptests)"
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/pytest_jsonreport
%{python_sitelib}/pytest[-_]json[-_]report-%{version}.dist-info
%changelog