Commit Graph

9 Commits

Author SHA1 Message Date
Khem Raj
2694eb1fe0
python3-pydantic-core: Upgrade to 2.33.0 release
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-04-01 21:54:56 -07:00
Wang Mingyu
cba98babfa
python3-pydantic-core: upgrade 2.27.0 -> 2.27.1
Changelog:
=============
- Simplify shared union serializer logic
- Tidy up some uses of Bound<'_, PyString>::to_str
- Fix serialization inference for complex types in python
- Bump to PyO3 v0.22.6
- Fix performance regression for JSON tagged union

Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-12-03 09:44:35 -08:00
Khem Raj
88f4813cbd
python3-pydantic-core: Upgrade to 2.27.0
Add missing ptest rdep on python3-inline-snapshot

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-11-21 21:42:35 -08:00
Khem Raj
51baa456a2
python3-pydantic-core: Upgrade to 2.25.0
Needed for py 3.13 support in pydantic 2.9 recipe

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-28 21:25:23 -07:00
Tim Orling
982db9fe07
python3-pydantic-core: upgrade 2.18.4 -> 2.21.0
* Refresh -crates.inc
* Drop rust 1.76 to 1.75 patch, upstream reverted [1]
* Add ptest RDEPENDS [2]:
  - python3-dateutil
  - python3-tzdata
  - python3-zoneinfo
* Add python3-misc to ptest RDEPENDS as we need Lib/timeit.py

Full commit log:
https://github.com/pydantic/pydantic-core/compare/v2.18.4...v2.21.0

[1] ebef5bdf92
[2] https://github.com/pydantic/pydantic-core/blob/v2.21.0/tests/requirements.txt

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-08-09 14:25:29 -07:00
Frank de Brabander
bee8b9bbc4
python3-pydantic-core: fix incompatible version
The recipe for pydantic currently is at version 2.7.2. This
project specifies in its pyproject.toml that it depends on
pydantic-core version 2.18.4. Because an older 2.16.3 version
of pydantic-core was used now, a simple bit of code will break.

  from enum import Enum
  from pydantic import BaseModel

  class Color(str, Enum):
      RED = "RED"
      BLUE = "BLUE"

  class Car(BaseModel):
      color: Color

  print(Car(color=Color.RED))

This will upgrade the python3-pydantic-core recipe to make it
compatible with python3-pydantic, so that the above snippet of
code will no longer fail.

Two patches are removed, these backports are now included in the
upstream code. A new patch is added to set the required rust
compiler from 1.76 to 1.75. Version 1.76 is not actually needed.

File python3-pydantic-core-crates.inc is regenerated by running
'bitbake -c update_crates python3-pydantic-core'.

The recipes RDEPENDS now includes python3-compression. The pydantic
schema validator imports 'importlib.metadata' which wants to import
'zipfile'.

The buildpaths QA check is skipped. This should be fixed at some
point, but it was already failing before this change.

Signed-off-by: Frank de Brabander <debrabander@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-07-26 09:51:39 -07:00
Khem Raj
9f0e513211
python3-pydantic-core: Fix build for arches without 64bit atomics
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-02-27 17:51:18 -08:00
Wang Mingyu
e8770670fb
python3-pydantic-core: upgrade 2.14.6 -> 2.16.1
The updated of python-3-pydantic requires python3-pydantic-core to be updated to version 2.16.1 or later.

Update the denpendencies for current python3-pydantic:
======================================================
 Version up:
  Bump ahash from 0.8.6 to 0.8.7
  Bump base64 from 0.21.5 to 0.21.7
  Bump form_urlencoded from 1.2.0 to 1.2.1
  Bump allocator-api2 from 0.2.16 to
  Bump hashbrown from 0.14.0 to 0.14.3
  Bump idna from 0.4.0 to 0.5.0
  Bump jiter from 0.0.4 to 0.0.6
  Bump percent-encoding from 2.3.0 to 2.3.1
  Bump proc-macro2 from 1.0.69 to 1.0.76
  Bump pyo3 from 0.20.0 to 0.20.2
  Bump pyo3-build-config from 0.20.0 to 0.20.2
  Bump pyo3-ffi from 0.20.0 to 0.20.2
  Bump pyo3-macros from 0.20.0 to 0.20.2
  Bump pyo3-macros-backend from 0.20.0 to 0.20.2
  Bump quote from 1.0.29 to 1.0.35
  Bump serde from 1.0.190 to 1.0.195
  Bump serde_derive from 1.0.190 to 1.0.195
  Bump serde_json from 1.0.108 to 1.0.109
  Bump smallvec from 1.11.1 to 1.11.2
  Bump syn from 2.0.38 to 2.0.48
  Bump url from 2.4.1 to 2.5.0
  Bump uuid from 1.5.0 to 1.6.1
  Bump zerocopy from 0.7.20 to 0.7.32
  Bump zerocopy-derive from 0.7.20 to 0.7.32
 New dependency:
  allocator-api2

Changelog:
 https://github.com/pydantic/pydantic-core/releases

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-02-21 20:00:22 -08:00
Tim Orling
e67a62b44c
python3-pydantic-core: add v2.14.5
Runtime dependency for current python3-pydantic

This package provides the core functionality for pydantic validation and serialization.

Pydantic-core is currently around 17x faster than pydantic V1. See tests/benchmarks/ for details.
https://github.com/pydantic/pydantic-core/tree/v2.14.5/tests/benchmarks

Signed-off-by: Tim Orling <ticotimo@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-12-21 08:00:41 -08:00