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-bidict] rawhide: Update to 0.24.1 (close RHBZ#2524218)
Date: Wed, 26 Aug 2026 07:22:12 GMT [thread overview]
Message-ID: <178772893270.1.11635527150454524060.rpms-python-bidict-2f2ac6e1391f@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-bidict
Branch : rawhide
Commit : 2f2ac6e1391fcd52ec60a1537a09249c7123c7e7
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-08-26T08:20:52+01:00
Stats : +2/-67 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/python-bidict/c/2f2ac6e1391fcd52ec60a1537a09249c7123c7e7?branch=rawhide
Log:
Update to 0.24.1 (close RHBZ#2524218)
---
diff --git a/bidict-0.24.0-python-3.15.patch b/bidict-0.24.0-python-3.15.patch
deleted file mode 100644
index ea7a8ee..0000000
--- a/bidict-0.24.0-python-3.15.patch
+++ /dev/null
@@ -1,52 +0,0 @@
-From 36f3481b598d71f8a8abb2414c9eafbf76f81cb9 Mon Sep 17 00:00:00 2001
-From: Joshua Bronson <jabronson@gmail.com>
-Date: Tue, 25 Aug 2026 10:39:12 -0400
-Subject: [PATCH] Keep the refusing-dict fixture counting popitem on Python
- 3.15
-
-bidict_refusing_nth_write() builds a backing mapping that refuses its nth
-write, by counting the writes that pass through __setitem__ and __delitem__.
-That relied on UserDict routing every removal through __delitem__, which held
-until Python 3.15 gave UserDict a popitem() of its own that goes straight to
-self.data. On 3.15, MutableBidict.popitem()'s read of _fwdm.popitem() then
-escaped the count, so only one of a removal's two writes could be refused and
-test_remove_fails_clean_when_a_backing_mapping_refuses[popitem-bidict] failed.
-
-This patch has the fixture take MutableMapping's popitem(), which removes via
-__delitem__ on every supported Python, so the count spans both backing
-mappings again. bidict itself needed no change: only the fixture assumed how
-UserDict removes.
-
-Closes: #407
-
-Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
----
- tests/bidict_test_fixtures.py | 8 ++++++++
- 1 file changed, 8 insertions(+)
-
-diff --git a/tests/bidict_test_fixtures.py b/tests/bidict_test_fixtures.py
-index 3a847f73..61323cef 100644
---- a/tests/bidict_test_fixtures.py
-+++ b/tests/bidict_test_fixtures.py
-@@ -14,6 +14,7 @@
- from collections.abc import Iterable
- from collections.abc import KeysView
- from collections.abc import Mapping
-+from collections.abc import MutableMapping
- from collections.abc import Reversible
- from dataclasses import dataclass
- from itertools import chain
-@@ -363,6 +364,13 @@ def __delitem__(self, key: t.Any) -> None:
- tick()
- super().__delitem__(key)
-
-+ @override
-+ def popitem(self) -> tuple[t.Any, t.Any]:
-+ # Python 3.15 gave UserDict a popitem() of its own that goes straight to self.data,
-+ # bypassing __delitem__ and so escaping the count above. Take MutableMapping's
-+ # implementation, which removes via __delitem__ on every supported Python.
-+ return MutableMapping.popitem(self)
-+
- bi_t_refusing = type(f'Refusing{bi_t.__name__}', (bi_t,), {'_fwdm_cls': RefusingDict, '_invm_cls': RefusingDict})
- bi = bi_t_refusing(init)
- counting = True # writing init above must not count
diff --git a/python-bidict.spec b/python-bidict.spec
index b95ca78..0920606 100644
--- a/python-bidict.spec
+++ b/python-bidict.spec
@@ -1,5 +1,5 @@
Name: python-bidict
-Version: 0.24.0
+Version: 0.24.1
Release: %autorelease
Summary: Bidirectional mapping library for Python
@@ -8,19 +8,6 @@ URL: https://bidict.readthedocs.io
%global forgeurl https://github.com/jab/bidict
Source: %{forgeurl}/archive/v%{version}/bidict-%{version}.tar.gz
-
-# Keep the refusing-dict fixture counting popitem on Python 3.15
-# https://github.com/jab/bidict/commit/36f3481b598d71f8a8abb2414c9eafbf76f81cb9
-#
-# Fixes:
-#
-# Python 3.15.0rc1:
-# test_remove_fails_clean_when_a_backing_mapping_refuses[popitem-bidict] fails
-# https://github.com/jab/bidict/issues/407
-#
-# Without changelog modifications.
-Patch: bidict-0.24.0-python-3.15.patch
-
BuildSystem: pyproject
BuildOption(generate_buildrequires): --dependency-groups test
BuildOption(install): --assert-license bidict
diff --git a/sources b/sources
index 97b890c..99466ed 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (bidict-0.24.0.tar.gz) = 1ed5a958e267af7db8618bcbd2b925201348b7e10e9541e4c4462f0ac5a4a1386d1ff3a629acafaae3c8d87af636c817ee0b4cbeabf70ed86f6aa0407892b163
+SHA512 (bidict-0.24.1.tar.gz) = eeccd7bf035486c27ef44a87daeb196494d5c91f56875b55e3fcc8add7d91ebf6784c294628d71209e3a18d42619d016cc4e8ef4888d9a1fdf859b8daf3d3283
reply other threads:[~2026-08-26 7:22 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=178772893270.1.11635527150454524060.rpms-python-bidict-2f2ac6e1391f@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