public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-sentinels] rawhide: Backport upstream fix for pytest 9.0 (FTBFS)
@ 2026-06-08 13:49 Mikhail Gavrilov
0 siblings, 0 replies; only message in thread
From: Mikhail Gavrilov @ 2026-06-08 13:49 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-sentinels
Branch : rawhide
Commit : bf686aa1ad144338362a688f19108452822b640e
Author : Mikhail Gavrilov <mikhail.v.gavrilov@gmail.com>
Date : 2026-06-08T16:28:54+05:00
Stats : +26/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python-sentinels/c/bf686aa1ad144338362a688f19108452822b640e?branch=rawhide
Log:
Backport upstream fix for pytest 9.0 (FTBFS)
pytest 9.0 enforces that the testpaths config option is a list, but
pyproject.toml sets it to a string, so %check fails with "config option
'testpaths' expects a list ... got str: 'tests'". Backport the upstream
fix (PR #10, not yet released) as a patch.
---
diff --git a/10.patch b/10.patch
new file mode 100644
index 0000000..ff1033e
--- /dev/null
+++ b/10.patch
@@ -0,0 +1,20 @@
+From c1a999dae92370becc8dd6996b1ac4bc14e7556b Mon Sep 17 00:00:00 2001
+From: Martin Weinelt <hexa@darmstadt.ccc.de>
+Date: Sat, 24 Jan 2026 02:15:44 +0100
+Subject: [PATCH] Fix pytest 9.0 compatibility
+
+Testpaths must be a list and this is now enforced in pytest 9.0.
+---
+ pyproject.toml | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/pyproject.toml b/pyproject.toml
+index db284d1..416c274 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -36,4 +36,4 @@ testing = [
+ source = "vcs"
+
+ [tool.pytest]
+-testpaths = "tests"
++testpaths = ["tests"]
diff --git a/python-sentinels.spec b/python-sentinels.spec
index a30e85a..9f5e80b 100644
--- a/python-sentinels.spec
+++ b/python-sentinels.spec
@@ -2,7 +2,7 @@
Name: python-%{pypi_name}
Version: 1.1.1
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Various objects to denote special meanings in Python
License: BSD-3-Clause
@@ -10,6 +10,8 @@ URL: https://github.com/vmalloc/sentinels
Source0: %{pypi_source}
BuildArch: noarch
+Patch001: 10.patch
+
%description
The sentinels module is a small utility providing the Sentinel class, along
with useful instances.
@@ -52,6 +54,9 @@ rm -rf %{pypi_name}.egg-info
%changelog
+* Mon Jun 08 2026 Mikhail Gavrilov <mikhail.v.gavrilov@gmail.com> - 1.1.1-4
+- Backport upstream fix for pytest 9.0 (testpaths must be a list)
+
* Wed Jun 03 2026 Python Maint <python-maint@redhat.com> - 1.1.1-3
- Rebuilt for Python 3.15
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-08 13:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-08 13:49 [rpms/python-sentinels] rawhide: Backport upstream fix for pytest 9.0 (FTBFS) Mikhail Gavrilov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox