public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/python-venusian] epel10: Backport proposed patch for Python 3.13 (close RHBZ#2280554)
Date: Mon, 22 Jun 2026 15:00:45 GMT [thread overview]
Message-ID: <178214044530.1.17890482215975043905.rpms-python-venusian-9661b7b955c7@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-venusian
Branch : epel10
Commit : 9661b7b955c7559c23640796de422ebdf4075cd4
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2024-05-15T09:03:12-04:00
Stats : +45/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python-venusian/c/9661b7b955c7559c23640796de422ebdf4075cd4?branch=epel10
Log:
Backport proposed patch for Python 3.13 (close RHBZ#2280554)
---
diff --git a/92.patch b/92.patch
new file mode 100644
index 0000000..a29742f
--- /dev/null
+++ b/92.patch
@@ -0,0 +1,31 @@
+From 000b36d6968502683615da618afc3677ec8f05fc Mon Sep 17 00:00:00 2001
+From: "Benjamin A. Beasley" <code@musicinmybrain.net>
+Date: Wed, 15 May 2024 08:50:48 -0400
+Subject: [PATCH] Accommodate FrameLocalsProxy introduction in Python 3.13
+
+The `frame.f_locals` is now a write-through proxy object of type
+`FrameLocalsProxy`; see PEP 667. This fix is based on
+https://github.com/zopefoundation/zope.interface/pull/294 and
+specifically on
+https://github.com/zopefoundation/zope.interface/pull/294#issuecomment-2109776671.
+
+Fixes #91.
+---
+ tests/test_advice.py | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/tests/test_advice.py b/tests/test_advice.py
+index df2f5c0..d2a5a8d 100644
+--- a/tests/test_advice.py
++++ b/tests/test_advice.py
+@@ -93,7 +93,9 @@ def testCallInfo(self):
+ sys._getframe()
+ )
+ self.assertEqual(kind, "function call")
+- self.assertTrue(f_locals is locals()) # ???
++ frame = sys._getframe()
++ self.assertEqual(f_locals, frame.f_locals)
++ self.assertEqual(f_locals, locals())
+ for d in module.__dict__, f_globals:
+ self.assertTrue(d is globals())
+ self.assertEqual(len(codeinfo), 4)
diff --git a/python-venusian.spec b/python-venusian.spec
index e6d9dc2..c66247c 100644
--- a/python-venusian.spec
+++ b/python-venusian.spec
@@ -11,6 +11,19 @@ License: BSD-3-Clause-Modification AND ZPL-2.1
URL: https://github.com/Pylons/venusian
Source: %{pypi_source venusian}
+# Accommodate FrameLocalsProxy introduction in Python 3.13
+# https://github.com/Pylons/venusian/pull/92
+#
+# Fixes:
+#
+# Test failure in FrameInfoTest::testCallInfo on Python 3.13
+# https://github.com/Pylons/venusian/issues/91
+#
+# python-venusian fails to build with Python 3.13: AssertionError:
+# self.assertTrue(f_locals is locals())
+# https://bugzilla.redhat.com/show_bug.cgi?id=2280554
+Patch: %{url}/pull/92.patch
+
BuildArch: noarch
BuildRequires: python3-devel
@@ -37,7 +50,7 @@ Summary: %{summary}
%prep
-%autosetup -n venusian-%{version}
+%autosetup -n venusian-%{version} -p1
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters
sed -r -i 's/ --cov[^[:blank:]]*//g' setup.cfg
reply other threads:[~2026-06-22 15:00 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=178214044530.1.17890482215975043905.rpms-python-venusian-9661b7b955c7@fedoraproject.org \
--to=code@musicinmybrain.net \
--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