new version ptest needs module typing_inspection
| ImportError while importing test module '/usr/lib/python3-pydantic-core/ptest/tests/test_misc.py'.
| Hint: make sure your test modules/packages have valid Python names.
| Traceback:
| ../../python3.13/importlib/__init__.py:88: in import_module
| return _bootstrap._gcd_import(name[level:], package, level)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| tests/test_misc.py:10: in <module>
| from typing_inspection import typing_objects
| E ModuleNotFoundError: No module named 'typing_inspection'
| ERROR: tests/test_misc.py:tests/test_misc.py
Changelog:
==========
- update to speedate 0.16
- Better document SerializationInfo
- Fix generic issues with ValidationInfo and SerializationInfo
- Do not reuse validator and serializer when unpickling
- Remove unnecessary required fields count when exclude_none is set
- Update test dependencies after 3.8 dropped support
- Mark constructor parameters of exceptions as positional-only
- fix: submodel fields with wrap validator affect smart union selection
- use pypa/gh-action-pypi-publish
- add critical sections around bytearray reads
- simplify ser-as-any mechanism
- Coerce 'time' schema constraints
- drop serde-json preserve_order feature
- Remove core schema validation
- Improve uncaught PydanticUseDefault exception message
- Add support for Python 3.14
- drop pypy3.9 support, add pypy3.11 support
- Add ensure_ascii option
- Update repr of TzInfo
- Make ValidationInfo and SerializationInfo generic for context
Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
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>
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>
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>
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>