public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Mikhail Gavrilov <mikhail.v.gavrilov@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-sentinels] rawhide: Backport upstream fix for pytest 9.0 (FTBFS)
Date: Mon, 08 Jun 2026 13:49:41 GMT [thread overview]
Message-ID: <178092658101.1.1579013183996913726.rpms-python-sentinels-bf686aa1ad14@fedoraproject.org> (raw)
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
reply other threads:[~2026-06-08 13:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178092658101.1.1579013183996913726.rpms-python-sentinels-bf686aa1ad14@fedoraproject.org \
--to=mikhail.v.gavrilov@gmail.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox