package/python-pydantic-core: downgrade to 2.33.2 to sync with pydantic

pydantic pins an exact version of pydantic-core in it's pyproject.toml
[1]. This was missed during the last pydantic bump where pydantic-core
was erroneously updated to the latest release instead, in commit [2]
and [3].

Modify the pydantic runtime test to catch this error in the future.

[1] https://github.com/pydantic/pydantic/blob/v2.11.4/pyproject.toml#L49
[2] e1c939e426
[3] e42de820cd

Signed-off-by: Marcus Hoffmann <buildroot@bubu1.eu>
[Julien: add reference to commits introducing the issue]
Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
Marcus Hoffmann
2025-05-23 12:47:39 +02:00
committed by Julien Olivain
parent 0839545a9b
commit e05648d133
3 changed files with 10 additions and 3 deletions

View File

@@ -1,6 +1,11 @@
from datetime import datetime
from pydantic import BaseModel, PositiveInt
from pydantic.version import check_pydantic_core_version
# pydantic pins an exact version of pydantic core
# verify these are in sync in buildroots packaging
assert check_pydantic_core_version()
class User(BaseModel):