diff mbox series

[meta-python,006/105] python3-bidict: upgrade 0.23.1 -> 0.24.1

Message ID 20261116175359.342679-6-khem.raj@oss.qualcomm.com
State New
Headers show
Series [meta-python,001/105] python3-absl: upgrade 2.1.0 -> 2.5.1 | expand

Commit Message

Khem Raj Nov. 16, 2026, 5:52 p.m. UTC
Upstream builds with uv_build now; inherit python_uv_build and relax its
narrow uv_build version bound.

License-Update: Copyright year bump.

Changes:
- Breaking: requires Python 3.11 or newer (was 3.8); build backend is
  now uv_build; typing-extensions needed only before Python 3.12.
- Breaking: remove bidict.metadata and bidict.__version__ (use
  importlib.metadata); pickles written by 0.23.1 and earlier can no
  longer be read.
- Fix values() order mismatch with keys() on non-ordered bidicts, and
  make bulk update()/putall() fail clean (roll back) on any error.
- Bidict and its inverse now share the same key/value objects; fix
  non-reflexive (nan) key handling and OrderedBidict view set ops.
- Single-item writes are about 6x faster. 0.24.1 fixes the wheel
  RECORD file and a Python 3.15 test failure.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 ...oml-Relax-the-uv_build-version-bound.patch | 25 +++++++++++++++++++
 .../python/python3-bidict_0.23.1.bb           | 11 --------
 .../python/python3-bidict_0.24.1.bb           | 12 +++++++++
 3 files changed, 37 insertions(+), 11 deletions(-)
 create mode 100644 meta-python/recipes-devtools/python/python3-bidict/0001-pyproject.toml-Relax-the-uv_build-version-bound.patch
 delete mode 100644 meta-python/recipes-devtools/python/python3-bidict_0.23.1.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-bidict_0.24.1.bb
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-bidict/0001-pyproject.toml-Relax-the-uv_build-version-bound.patch b/meta-python/recipes-devtools/python/python3-bidict/0001-pyproject.toml-Relax-the-uv_build-version-bound.patch
new file mode 100644
index 0000000000..e5647a4b11
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-bidict/0001-pyproject.toml-Relax-the-uv_build-version-bound.patch
@@ -0,0 +1,25 @@ 
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Sun, 15 Nov 2026 23:07:01 -0800
+Subject: [PATCH] pyproject.toml: Relax the uv_build version bound
+
+uv_build is pinned to a narrow range upstream; build with the uv_build
+version that OE ships.
+
+Upstream-Status: Inappropriate [OE-specific]
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+ pyproject.toml | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -78,7 +78,7 @@
+ # The ceiling is only change control, and is what uv recommends (it warns without one). Keep it
+ # covering the uv in uv.lock, so `uv build` keeps using that uv's built-in uv_build rather than
+ # downloading one; update_dev_dependencies checks this.
+-requires = ["uv_build>=0.8.13,<0.12"]
++requires = ["uv_build>=0.8.13"]
+ build-backend = "uv_build"
+ 
+ [tool.ty.src]
diff --git a/meta-python/recipes-devtools/python/python3-bidict_0.23.1.bb b/meta-python/recipes-devtools/python/python3-bidict_0.23.1.bb
deleted file mode 100644
index cd9e365ff7..0000000000
--- a/meta-python/recipes-devtools/python/python3-bidict_0.23.1.bb
+++ /dev/null
@@ -1,11 +0,0 @@ 
-SUMMARY = "The bidirectional mapping library for Python."
-DESCRIPTION = "The bidirectional mapping library for Python."
-HOMEPAGE = "https://bidict.readthedocs.io/"
-LICENSE = "MPL-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=e907308cc9356afa99ac0eec6b20211b"
-
-SRC_URI[sha256sum] = "03069d763bc387bbd20e7d49914e75fc4132a41937fa3405417e1a5a2d006d71"
-
-inherit pypi python_setuptools_build_meta
-
-DEPENDS += "python3-setuptools-scm-native"
diff --git a/meta-python/recipes-devtools/python/python3-bidict_0.24.1.bb b/meta-python/recipes-devtools/python/python3-bidict_0.24.1.bb
new file mode 100644
index 0000000000..4fc5ac85b2
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-bidict_0.24.1.bb
@@ -0,0 +1,12 @@ 
+SUMMARY = "The bidirectional mapping library for Python."
+DESCRIPTION = "The bidirectional mapping library for Python."
+HOMEPAGE = "https://bidict.readthedocs.io/"
+LICENSE = "MPL-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=faf006af6b1264b57f6cca7283841ac4"
+
+SRC_URI += "file://0001-pyproject.toml-Relax-the-uv_build-version-bound.patch"
+SRC_URI[sha256sum] = "4dca6c17f0b01700e9f24359daa5ebabf7be022d99f4cb2a257b6af2a5076c88"
+
+inherit pypi python_uv_build
+
+DEPENDS += "python3-setuptools-scm-native"