public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-venusian] epel10.2: Backport proposed patch for Python 3.13 (close RHBZ#2280554)
@ 2026-06-22 16:02 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-06-22 16:02 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-venusian
Branch : epel10.2
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.2
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-22 16:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-22 16:02 [rpms/python-venusian] epel10.2: Backport proposed patch for Python 3.13 (close RHBZ#2280554) Benjamin A. Beasley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox