Skip to contentSkip to conversation

python3-pydantic-core: Upgrade 2.41.1 -> 2.41.5

PATCH New Leon Anavi 1 participant 3 messages Nov 20, 2025

lore
Share & tools
lore

Leon Anavi

author
#0 lore raw

PATCH 1/3 python3-pydantic-core: Upgrade 2.41.1 -> 2.41.5

Upgrade to release 2.41.5:

- Correct invalid serialization of date/datetime/time/timedelta by pulling downcast checks up
- Avoid getting default values from defaultdict
- ci: add more 3.14t builds, delete duplicate linux aarch64 build
- JsonValue: Deduplicate keys before populating Dict
- Fix: only percent-encode characters in the userinfo encode set
- Bump jiter from 0.11.0 to 0.11.1
- Bump regex from 1.11.3 to 1.12.2
- Bump percent-encoding from 2.3.1 to 2.3.2
- Fix issue with field_serializers on nested typed dicts
- Clean up GC traversal for some top-level types
- Add type inference for serializing ip address types
- Revert url credential encoding (to be reintroduced as an option in future)
- optimizations in URL implementation

This work was sponsored by GOVCERT.LU.

---
 .../python/python3-pydantic-core-crates.inc   |  18 +-
 ...toml-Update-bitvec-to-use-radium-1.x.patch |  14 +-
 .../python/python3-pydantic-core_2.41.1.bb    |  53 ------
 .../python/python3-pydantic-core_2.41.5.bb    | 155 ++++++++++++++++++
 4 files changed, 170 insertions(+), 70 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-pydantic-core_2.41.1.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-pydantic-core_2.41.5.bb
meta-python/recipes-devtools/python/python3-pydantic-core-crates.inc +8 -10
index 1bee2b03ea..ba13535d1d 100644
@@ -32,7 +32,7 @@ SRC_URI += " \
     crate://crates.io/idna_adapter/1.2.0 \
     crate://crates.io/indoc/2.0.5 \
     crate://crates.io/itoa/1.0.11 \
-    crate://crates.io/jiter/0.11.0 \
+    crate://crates.io/jiter/0.11.1 \
     crate://crates.io/js-sys/0.3.77 \
     crate://crates.io/lexical-parse-float/1.0.5 \
     crate://crates.io/lexical-parse-integer/1.0.5 \
@@ -46,7 +46,7 @@ SRC_URI += " \
     crate://crates.io/num-integer/0.1.46 \
     crate://crates.io/num-traits/0.2.19 \
     crate://crates.io/once_cell/1.21.3 \
-    crate://crates.io/percent-encoding/2.3.1 \
+    crate://crates.io/percent-encoding/2.3.2 \
     crate://crates.io/portable-atomic/1.6.0 \
     crate://crates.io/proc-macro2/1.0.86 \
     crate://crates.io/pyo3/0.26.0 \
@@ -57,10 +57,9 @@ SRC_URI += " \
     crate://crates.io/python3-dll-a/0.2.14 \
     crate://crates.io/quote/1.0.36 \
     crate://crates.io/r-efi/5.2.0 \
-    crate://crates.io/radium/0.7.0 \
     crate://crates.io/radium/1.1.0 \
-    crate://crates.io/regex/1.11.3 \
-    crate://crates.io/regex-automata/0.4.11 \
+    crate://crates.io/regex/1.12.2 \
+    crate://crates.io/regex-automata/0.4.13 \
     crate://crates.io/regex-syntax/0.8.5 \
     crate://crates.io/rustversion/1.0.17 \
     crate://crates.io/ryu/1.0.18 \
@@ -136,7 +135,7 @@ SRC_URI[idna-1.1.0.sha256sum] = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d
 SRC_URI[idna_adapter-1.2.0.sha256sum] = "daca1df1c957320b2cf139ac61e7bd64fed304c5040df000a745aa1de3b4ef71"
 SRC_URI[indoc-2.0.5.sha256sum] = "b248f5224d1d606005e02c97f5aa4e88eeb230488bcc03bc9ca4d7991399f2b5"
 SRC_URI[itoa-1.0.11.sha256sum] = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b"
-SRC_URI[jiter-0.11.0.sha256sum] = "ed1be5dfeadf968b30fa03a012a2f161de8be6df2d91bd8085c62cfb5efca65a"
+SRC_URI[jiter-0.11.1.sha256sum] = "8e805fb15a8249d25213202b9098f7b9ad00f8042ccc6f0063d2ae7b33f3d7da"
 SRC_URI[js-sys-0.3.77.sha256sum] = "1cfaf33c695fc6e08064efbc1f72ec937429614f25eef83af942d0e227c3a28f"
 SRC_URI[lexical-parse-float-1.0.5.sha256sum] = "de6f9cb01fb0b08060209a057c048fcbab8717b4c1ecd2eac66ebfe39a65b0f2"
 SRC_URI[lexical-parse-integer-1.0.5.sha256sum] = "72207aae22fc0a121ba7b6d479e42cbfea549af1479c3f3a4f12c70dd66df12e"
@@ -150,7 +149,7 @@ SRC_URI[num-bigint-0.4.6.sha256sum] = "a5e44f723f1133c9deac646763579fdb3ac745e41
 SRC_URI[num-integer-0.1.46.sha256sum] = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f"
 SRC_URI[num-traits-0.2.19.sha256sum] = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
 SRC_URI[once_cell-1.21.3.sha256sum] = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
-SRC_URI[percent-encoding-2.3.1.sha256sum] = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e"
+SRC_URI[percent-encoding-2.3.2.sha256sum] = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220"
 SRC_URI[portable-atomic-1.6.0.sha256sum] = "7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0"
 SRC_URI[proc-macro2-1.0.86.sha256sum] = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77"
 SRC_URI[pyo3-0.26.0.sha256sum] = "7ba0117f4212101ee6544044dae45abe1083d30ce7b29c4b5cbdfa2354e07383"
@@ -161,10 +160,9 @@ SRC_URI[pyo3-macros-backend-0.26.0.sha256sum] = "100246c0ecf400b475341b8455a9213
 SRC_URI[python3-dll-a-0.2.14.sha256sum] = "d381ef313ae70b4da5f95f8a4de773c6aa5cd28f73adec4b4a31df70b66780d8"
 SRC_URI[quote-1.0.36.sha256sum] = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7"
 SRC_URI[r-efi-5.2.0.sha256sum] = "74765f6d916ee2faa39bc8e68e4f3ed8949b48cccdac59983d287a7cb71ce9c5"
-SRC_URI[radium-0.7.0.sha256sum] = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09"
 SRC_URI[radium-1.1.0.sha256sum] = "db0b76288902db304c864a12046b73d2d895cc34a4bb8137baaeebe9978a072c"
-SRC_URI[regex-1.11.3.sha256sum] = "8b5288124840bee7b386bc413c487869b360b2b4ec421ea56425128692f2a82c"
-SRC_URI[regex-automata-0.4.11.sha256sum] = "833eb9ce86d40ef33cb1306d8accf7bc8ec2bfea4355cbdebb3df68b40925cad"
+SRC_URI[regex-1.12.2.sha256sum] = "843bc0191f75f3e22651ae5f1e72939ab2f72a4bc30fa80a066bd66edefc24d4"
+SRC_URI[regex-automata-0.4.13.sha256sum] = "5276caf25ac86c8d810222b3dbb938e512c55c6831a10f3e6ed1c93b84041f1c"
 SRC_URI[regex-syntax-0.8.5.sha256sum] = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c"
 SRC_URI[rustversion-1.0.17.sha256sum] = "955d28af4278de8121b7ebeb796b6a45735dc01436d898801014aced2773a3d6"
 SRC_URI[ryu-1.0.18.sha256sum] = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f"
meta-python/recipes-devtools/python/python3-pydantic-core/0001-cargo.toml-Update-bitvec-to-use-radium-1.x.patch +7 -7
index ccaae06b7b..e4f19a1e3a 100644
@@ -1,4 +1,4 @@
-From c4ebe7d218f7415b7c0137c231a47455b237840b Mon Sep 17 00:00:00 2001
+From 1f0eaed9473f2a60f4a4e2dd95e376cebc0112d9 Mon Sep 17 00:00:00 2001
 From: Khem Raj <[email protected]>
 Date: Sat, 19 Apr 2025 00:09:42 -0700
 Subject: [PATCH] cargo.toml: Update bitvec to use radium 1.x
@@ -13,7 +13,7 @@ Signed-off-by: Leon Anavi <[email protected]>
  2 files changed, 13 insertions(+), 1 deletion(-)
 
 diff --git a/Cargo.lock b/Cargo.lock
-index c1d0e44..9fc5367 100644
+index 1a7c8ea..3d5eafe 100644
 --- a/Cargo.lock
 +++ b/Cargo.lock
 @@ -49,7 +49,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -25,15 +25,15 @@ index c1d0e44..9fc5367 100644
   "tap",
   "wyz",
  ]
-@@ -443,6 +443,7 @@ dependencies = [
-  "num-traits",
+@@ -444,6 +444,7 @@ dependencies = [
+  "percent-encoding",
   "pyo3",
   "pyo3-build-config",
 + "radium 1.1.0",
   "regex",
   "serde",
   "serde_json",
-@@ -548,6 +549,15 @@ version = "0.7.0"
+@@ -549,6 +550,15 @@ version = "0.7.0"
  source = "registry+https://github.com/rust-lang/crates.io-index"
  checksum = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09"
  
@@ -48,9 +48,9 @@ index c1d0e44..9fc5367 100644
 +
  [[package]]
  name = "regex"
- version = "1.11.3"
+ version = "1.12.2"
 diff --git a/Cargo.toml b/Cargo.toml
-index df90031..e671ade 100644
+index a7e86ab..09eaf64 100644
 --- a/Cargo.toml
 +++ b/Cargo.toml
 @@ -25,6 +25,8 @@ include = [
meta-python/recipes-devtools/python/python3-pydantic-core_2.41.1.bb deleted +0 -53

53 lines not on this page · raw message

meta-python/recipes-devtools/python/python3-pydantic-core_2.41.5.bb new file +155 -0

155 lines not on this page · raw message

Signature · 1 line
2.47.3
author
#1 lore raw

PATCH 2/3 python3-pydantic: Upgrade 2.12.0 -> 2.12.4

Upgrade to release python3-pydantic:

- Fix issue with forward references in parent TypedDict classes
- Exclude fields with exclude_if from JSON Schema required fields
- Revert URL percent-encoding of credentials in the build() method of the AnyUrl and Dsn types
- Add type inference for IP address types
- Avoid getting default values from defaultdict
- Fix issue with field serializers on nested typed dictionaries
- Add more pydantic-core builds for the three-threaded version of Python 3.14

This work was sponsored by GOVCERT.LU

---
 ...{python3-pydantic_2.12.0.bb => python3-pydantic_2.12.4.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta-python/recipes-devtools/python/{python3-pydantic_2.12.0.bb => python3-pydantic_2.12.4.bb} (97%)
meta-python/recipes-devtools/python/python3-pydantic_2.12.4.bb renamed from meta-python/recipes-devtools/python/python3-pydantic_2.12.0.bb +2 -2
similarity index 97%
rename from meta-python/recipes-devtools/python/python3-pydantic_2.12.0.bb
rename to meta-python/recipes-devtools/python/python3-pydantic_2.12.4.bb
index 8016b55dfe..13035f4808 100644
@@ -11,9 +11,9 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=09280955509d1c4ca14bae02f21d49a6"
 
 inherit python_hatchling ptest-python-pytest
 
-SRCREV = "a7928e692e5a7841c4379d1af1fd37966941dade"
+SRCREV = "5c842dfc9c245fb37aa1f5ec5b55c1aed10bd7e6"
 PV .= "+git"
-SRC_URI = "git://github.com/pydantic/pydantic;protocol=https;branch=main"
+SRC_URI = "git://github.com/pydantic/pydantic;protocol=https;branch=v2.12-fixes"
 DEPENDS += "python3-hatch-fancy-pypi-readme-native"
 
 RECIPE_NO_UPDATE_REASON = "Must be updated in sync with python3-pydantic-core."
Signature · 1 line
2.47.3
author
#2 lore raw

PATCH 3/3 python3-pillow: Upgrade 11.3.0 -> 12.0.0

In reply to Leon Anavi

Upgrade to release 12.0.0:

- Fix issue with forward references in parent TypedDict classes
- Exclude fields with exclude_if from JSON Schema required fields
- Revert URL percent-encoding of credentials in the build() method of the AnyUrl and Dsn types
- Add type inference for IP address types
- Avoid getting default values from defaultdict
- Fix issue with field serializers on nested typed dictionaries

This work was sponsored by GOVCERT.LU.

---
 .../{python3-pillow_11.3.0.bb => python3-pillow_12.0.0.bb}     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-pillow_11.3.0.bb => python3-pillow_12.0.0.bb} (94%)
meta-python/recipes-devtools/python/python3-pillow_12.0.0.bb renamed from meta-python/recipes-devtools/python/python3-pillow_11.3.0.bb +2 -1
similarity index 94%
rename from meta-python/recipes-devtools/python/python3-pillow_11.3.0.bb
rename to meta-python/recipes-devtools/python/python3-pillow_12.0.0.bb
index de88160e25..4db5db1572 100644
@@ -8,7 +8,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=a1b708da743e3fc0e5c35e92daac0bf8"
 SRC_URI = "git://github.com/python-pillow/Pillow.git;branch=main;protocol=https;tag=${PV} \
            file://0001-support-cross-compiling.patch \
            "
-SRCREV = "89f1f4626a2aaf5f3d5ca6437f41def2998fbe09"
+SRCREV = "693df7b42c666f88c719f9973be0ad71607328e0"
 
 inherit python_setuptools_build_meta ptest-python-pytest
 
@@ -34,6 +34,7 @@ DEPENDS += " \
     freetype \
     lcms \
     openjpeg \
+    python3-pybind11-native \
 "
 
 RDEPENDS:${PN} += " \
Signature · 1 line
2.47.3