mbox

[scarthgap,meta-python,0/6] Fix python3-pydantic-* situation

Message ID cover.1723432397.git.tim.orling@konsulko.com
State New
Headers show

Pull-request

https://git.openembedded.org/meta-openembedded-contrib timo/scarthgap/python3-pydantic

Message

Tim Orling Aug. 12, 2024, 3:28 a.m. UTC
From: Tim Orling <tim.orling@konsulko.com>

Unfortunately, python3-pydantic upgrades without required upgrades to python3-pydantic-core were merged
into "master" (Styhead) which left "scarthgap" in a broken situation.

This series first attempts to take backports from "master" (Styhead) and secondarily takes patches
already sent to the mailing list that were never merged. The goal is to bring as much as possible
to the same functional state as "master" when python3-pydantic-core 2.18.4 was merged.

Additional fixes for TMPDIR [build-paths] and ptest are also added from the mailing list.

Finally, we upgrade to the last python3-pydantic 2.7.x version, 2.7.4,  for bug fixes.

A big thank you to:
  * Frank de Brabander <debrabander@gmail.com> for helping to follow through
    with upstream for the TMPDIR fix and simplifying the ptest RDEPENDS for scarthgap.
  * Richard Leitner <dev@g0hl1n.net> for tirelessly trying to move this fix forward

The following changes since commit 2338409efc51cf2022ff5610a9fb689251706e2b:

  python3-pydantic-core: Fix build with python 3.12.4 (2024-08-03 12:25:17 -0400)

are available in the Git repository at:

  https://git.openembedded.org/meta-openembedded-contrib timo/scarthgap/python3-pydantic
  https://git.openembedded.org/meta-openembedded-contrib/log/?h=timo/scarthgap/python3-pydantic

Frank de Brabander (3):
  python3-pydantic-core: fix incompatible version
  python3-pydantic-core: fix TMPDIR path reference
  python3-pydantic-core: add missing RDEPENDS for ptest

Khem Raj (1):
  python3-pydantic: Upgrade to 2.7.3

Tim Orling (1):
  python3-pydantic: upgrade 2.7.3 -> 2.7.4

Wang Mingyu (1):
  python3-pydantic: upgrade 2.7.0 -> 2.7.1

 .../python/python3-pydantic-core-crates.inc   |  88 ++++++------
 ...-github.com-pyo3-pyo3-from-0.20.2-to.patch | 126 ------------------
 ...ate_self_schema-for-Python-3.12-1299.patch |  29 ----
 ...sion-from-1.76-to-1.75-in-Cargo.toml.patch |  29 ++++
 ...Dont-embed-RUSTFLAGS-in-final-binary.patch |  47 +++++++
 ...6.3.bb => python3-pydantic-core_2.18.4.bb} |  13 +-
 ...tic_2.7.0.bb => python3-pydantic_2.7.4.bb} |   2 +-
 7 files changed, 132 insertions(+), 202 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-pydantic-core/0001-Bumps-pyo3-https-github.com-pyo3-pyo3-from-0.20.2-to.patch
 delete mode 100644 meta-python/recipes-devtools/python/python3-pydantic-core/0001-Fix-generate_self_schema-for-Python-3.12-1299.patch
 create mode 100644 meta-python/recipes-devtools/python/python3-pydantic-core/0001-Set-rust-version-from-1.76-to-1.75-in-Cargo.toml.patch
 create mode 100644 meta-python/recipes-devtools/python/python3-pydantic-core/0002-Dont-embed-RUSTFLAGS-in-final-binary.patch
 rename meta-python/recipes-devtools/python/{python3-pydantic-core_2.16.3.bb => python3-pydantic-core_2.18.4.bb} (80%)
 rename meta-python/recipes-devtools/python/{python3-pydantic_2.7.0.bb => python3-pydantic_2.7.4.bb} (95%)