From 5de0b3e1f420098eb2bd3dbf8f9a47838d0bfb2a Mon Sep 17 00:00:00 2001 From: tigro Date: Sat, 28 Dec 2024 15:05:25 +0300 Subject: [PATCH] import python-pytest-github-actions-annotate-failures-0.2.0-2.el10 --- .gitignore | 1 + ...-github-actions-annotate-failures.metadata | 1 + ...test-github-actions-annotate-failures.spec | 84 +++++++++++++++++++ 3 files changed, 86 insertions(+) create mode 100644 .gitignore create mode 100644 .python-pytest-github-actions-annotate-failures.metadata create mode 100644 SPECS/python-pytest-github-actions-annotate-failures.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e831bf7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/pytest-github-actions-annotate-failures-0.2.0.tar.gz diff --git a/.python-pytest-github-actions-annotate-failures.metadata b/.python-pytest-github-actions-annotate-failures.metadata new file mode 100644 index 0000000..23e9cba --- /dev/null +++ b/.python-pytest-github-actions-annotate-failures.metadata @@ -0,0 +1 @@ +ef79329d432e25da6096bec22e385d62d2c3b1c3 SOURCES/pytest-github-actions-annotate-failures-0.2.0.tar.gz diff --git a/SPECS/python-pytest-github-actions-annotate-failures.spec b/SPECS/python-pytest-github-actions-annotate-failures.spec new file mode 100644 index 0000000..675303b --- /dev/null +++ b/SPECS/python-pytest-github-actions-annotate-failures.spec @@ -0,0 +1,84 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.6.5) +## 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 +* Sat Dec 28 2024 Arkady L. Shane - 0.2.0-2 +- Rebuilt for MSVSphere 10 + +## 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