public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-pytest-github-actions-annotate-failures] rawhide: Fix build failures with setuptools-scm and missing test dependencies
@ 2026-09-12  8:54 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-09-12  8:54 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/python-pytest-github-actions-annotate-failures
            Branch : rawhide
            Commit : 7150422b69e4a1b3b43a8974895f395523f7eed9
            Author : Miroslav Suchý <msuchy@redhat.com>
            Date   : 2026-09-12T00:51:07+02:00
            Stats  : +4/-0 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-pytest-github-actions-annotate-failures/c/7150422b69e4a1b3b43a8974895f395523f7eed9?branch=rawhide

            Log:
            Fix build failures with setuptools-scm and missing test dependencies

Set SETUPTOOLS_SCM_PRETEND_VERSION so version detection works from
tarball without .git metadata. Add BuildRequires on pytest-rerunfailures
and pytest-xdist needed by upstream integration tests that spawn
subprocess pytest with --reruns/-n flags.

Assisted-By: Claude Opus 4.6 <noreply@anthropic.com>

---
diff --git a/python-pytest-github-actions-annotate-failures.spec b/python-pytest-github-actions-annotate-failures.spec
index e1d7a33..52645d7 100644
--- a/python-pytest-github-actions-annotate-failures.spec
+++ b/python-pytest-github-actions-annotate-failures.spec
@@ -15,6 +15,8 @@ Source:         %forgesource
 BuildArch:      noarch
 BuildRequires:  python3-devel
 BuildRequires:  python3-pkg-resources
+BuildRequires:  python3-pytest-rerunfailures
+BuildRequires:  python3-pytest-xdist
 
 %global _description %{expand:
 Pytest plugin to annotate failed tests with a workflow command for
@@ -34,10 +36,12 @@ Summary:        %{summary}
 
 
 %generate_buildrequires
+export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
 %pyproject_buildrequires
 
 
 %build
+export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
 %pyproject_wheel
 
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-12  8:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-12  8:54 [rpms/python-pytest-github-actions-annotate-failures] rawhide: Fix build failures with setuptools-scm and missing test dependencies 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox