public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/btrfs-backup-ng] f43: Fix %check with pytest < 8.4
@ 2026-10-19  0:27 Michael Berry
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Berry @ 2026-10-19  0:27 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/btrfs-backup-ng
            Branch : f43
            Commit : b6dcfc72915ece2cc01c4d8c7b356b05744e520b
            Author : Michael Berry <trismegustis@gmail.com>
            Date   : 2026-10-18T18:42:54-04:00
            Stats  : +19/-0 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/btrfs-backup-ng/c/b6dcfc72915ece2cc01c4d8c7b356b05744e520b?branch=f43

            Log:
            Fix %check with pytest < 8.4

tests/conftest.py annotates a hook with pytest.TerminalReporter, which
pytest 8.3 (Fedora 43) does not export; on Python 3.14 that fails the
run at startup. Defer annotations until upstream ships the fix.

---
diff --git a/btrfs-backup-ng-pytest-8.3-terminalreporter.patch b/btrfs-backup-ng-pytest-8.3-terminalreporter.patch
new file mode 100644
index 0000000..c5b339e
--- /dev/null
+++ b/btrfs-backup-ng-pytest-8.3-terminalreporter.patch
@@ -0,0 +1,17 @@
+tests: do not evaluate pytest.TerminalReporter at hook registration
+
+pytest.TerminalReporter is public only from pytest 8.4 on. On Python 3.14
+pluggy evaluates hook annotations, so with pytest 8.3 (Fedora 43) the
+whole run fails at startup. Deferring annotations avoids the lookup.
+Drop when upstream ships the fix.
+
+--- a/tests/conftest.py	2026-10-18 18:12:05.696771100 -0400
++++ b/tests/conftest.py	2026-10-18 18:42:36.618523975 -0400
+@@ -1,5 +1,7 @@
+ """Pytest configuration and shared fixtures."""
+ 
++from __future__ import annotations
++
+ import functools
+ import logging
+ import os

diff --git a/btrfs-backup-ng.spec b/btrfs-backup-ng.spec
index ced124f..1b56abc 100644
--- a/btrfs-backup-ng.spec
+++ b/btrfs-backup-ng.spec
@@ -6,6 +6,8 @@ Summary:        Intelligent, feature-rich backups for btrfs
 License:        MIT
 URL:            https://github.com/berrym/btrfs-backup-ng
 Source:         %{pypi_source btrfs_backup_ng}
+# pytest < 8.4 (Fedora 43) has no public pytest.TerminalReporter; drop with upstream fix
+Patch:          btrfs-backup-ng-pytest-8.3-terminalreporter.patch
 
 BuildArch:      noarch
 BuildRequires:  python3-devel

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [rpms/btrfs-backup-ng] f43: Fix %check with pytest < 8.4
@ 2026-10-19  4:41 Michael Berry
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Berry @ 2026-10-19  4:41 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/btrfs-backup-ng
            Branch : f43
            Commit : fc76a80b8ebbbf3b1b03208db240ee157122c747
            Author : Michael Berry <trismegustis@gmail.com>
            Date   : 2026-10-18T18:42:54-04:00
            Stats  : +19/-0 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/btrfs-backup-ng/c/fc76a80b8ebbbf3b1b03208db240ee157122c747?branch=f43

            Log:
            Fix %check with pytest < 8.4

tests/conftest.py annotates a hook with pytest.TerminalReporter, which
pytest 8.3 (Fedora 43) does not export; on Python 3.14 that fails the
run at startup. Defer annotations until upstream ships the fix.

---
diff --git a/btrfs-backup-ng-pytest-8.3-terminalreporter.patch b/btrfs-backup-ng-pytest-8.3-terminalreporter.patch
new file mode 100644
index 0000000..c5b339e
--- /dev/null
+++ b/btrfs-backup-ng-pytest-8.3-terminalreporter.patch
@@ -0,0 +1,17 @@
+tests: do not evaluate pytest.TerminalReporter at hook registration
+
+pytest.TerminalReporter is public only from pytest 8.4 on. On Python 3.14
+pluggy evaluates hook annotations, so with pytest 8.3 (Fedora 43) the
+whole run fails at startup. Deferring annotations avoids the lookup.
+Drop when upstream ships the fix.
+
+--- a/tests/conftest.py	2026-10-18 18:12:05.696771100 -0400
++++ b/tests/conftest.py	2026-10-18 18:42:36.618523975 -0400
+@@ -1,5 +1,7 @@
+ """Pytest configuration and shared fixtures."""
+ 
++from __future__ import annotations
++
+ import functools
+ import logging
+ import os

diff --git a/btrfs-backup-ng.spec b/btrfs-backup-ng.spec
index ced124f..1b56abc 100644
--- a/btrfs-backup-ng.spec
+++ b/btrfs-backup-ng.spec
@@ -6,6 +6,8 @@ Summary:        Intelligent, feature-rich backups for btrfs
 License:        MIT
 URL:            https://github.com/berrym/btrfs-backup-ng
 Source:         %{pypi_source btrfs_backup_ng}
+# pytest < 8.4 (Fedora 43) has no public pytest.TerminalReporter; drop with upstream fix
+Patch:          btrfs-backup-ng-pytest-8.3-terminalreporter.patch
 
 BuildArch:      noarch
 BuildRequires:  python3-devel

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-10-19  4:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-19  0:27 [rpms/btrfs-backup-ng] f43: Fix %check with pytest < 8.4 Michael Berry
2026-10-19  4:41 Michael Berry

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