## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global pypi_name pytest-github-actions-annotate-failures Name: python-%{pypi_name} Version: 0.2.0 Release: %{autorelease} Summary: Pytest plugin to annotate failed tests in GitHub Actions %global forgeurl https://github.com/pytest-dev/pytest-github-actions-annotate-failures %forgemeta License: MIT URL: %forgeurl Source: %forgesource BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: Pytest plugin to annotate failed tests with a workflow command for GitHub Actions.} %description %_description %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %_description %prep %forgeautosetup -p1 %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l pytest_github_actions_annotate_failures %check # Test fails with pytest >= 7.4 (F40+) %if %{fedora} >= 40 k="${k-}${k+ and }not test_annotation_pytest_error" %endif %pytest -v ${k+-k }"${k-}" # Additional smoke test %pyproject_check_import %files -n python3-%{pypi_name} -f %{pyproject_files} %doc README.md %changelog ## START: Generated by rpmautospec * Fri Jul 19 2024 Fedora Release Engineering - 0.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sun Jun 30 2024 Sandro - 0.2.0-1 - Initial release (RHBZ#2294809) ## END: Generated by rpmautospec