package/python-pydantic-core: downgrade to 2.33.2 to sync with pydantic
PATCH 1/2 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.
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
--- package/python-pydantic-core/python-pydantic-core.hash | 2 +- package/python-pydantic-core/python-pydantic-core.mk | 6 ++++-- support/testing/tests/package/sample_python_pydantic.py | 5 +++++ 3 files changed, 10 insertions(+), 3 deletions(-)
package/python-pydantic-core/python-pydantic-core.hash +1 -1
@@ -1,4 +1,4 @@ # Locally calculated after vendoring -sha256 34e84faa734d981ca1f383844ac057434108e657667f115363abd93ac65486a6 python-pydantic-core-2.34.1-cargo4.tar.gz +sha256 d075c06f299090879748db99ab202a253e9a2b22ee4140b96c0257257b9351c8 python-pydantic-core-2.33.2-cargo4.tar.gz # Locally computed sha256 checksums sha256 2afdd30d54b4d62b6f488a6bcc1546e84ec5061f13f4209c03d012348783795a LICENSE
package/python-pydantic-core/python-pydantic-core.mk +4 -2
@@ -4,10 +4,12 @@ # ################################################################################ -PYTHON_PYDANTIC_CORE_VERSION = 2.34.1 +# python-pydantic pins an exact version of pydantic-core in pyproject.toml, +# make sure to sync pydantic-core to this version when updating pydantic +PYTHON_PYDANTIC_CORE_VERSION = 2.33.2 PYTHON_PYDANTIC_CORE_SOURCE_PYPI = pydantic_core-$(PYTHON_PYDANTIC_CORE_VERSION).tar.gz PYTHON_PYDANTIC_CORE_SITE = $(PYTHON_PYDANTIC_CORE_SITE_PYPI)/$(PYTHON_PYDANTIC_CORE_SOURCE_PYPI)?buildroot-path=filename -PYTHON_PYDANTIC_CORE_SITE_PYPI = https://files.pythonhosted.org/packages/42/fa/5f682f3db14e14f7b5b7f5008ac24594b93943d1da4facbacff5876624cf +PYTHON_PYDANTIC_CORE_SITE_PYPI = https://files.pythonhosted.org/packages/ad/88/5f2260bdfae97aabf98f1778d43f69574390ad787afb646292a638c923d4 PYTHON_PYDANTIC_CORE_SETUP_TYPE = maturin PYTHON_PYDANTIC_CORE_LICENSE = MIT PYTHON_PYDANTIC_CORE_LICENSE_FILES = LICENSE
support/testing/tests/package/sample_python_pydantic.py +5 -0
@@ -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):
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 2/2 package/python-pydantic: bump to version 2.11.5
Bugfix release for 2.11:
https://docs.pydantic.dev/latest/changelog/#v2115-2025-05-22
--- package/python-pydantic/python-pydantic.hash | 4 ++-- package/python-pydantic/python-pydantic.mk | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
package/python-pydantic/python-pydantic.hash +2 -2
@@ -1,5 +1,5 @@ # md5, sha256 from https://pypi.org/pypi/pydantic/json -md5 13bdd5856e805abdce75516cdb98935f pydantic-2.11.4.tar.gz -sha256 32738d19d63a226a52eed76645a98ee07c1f410ee41d93b4afbfa85ed8111c2d pydantic-2.11.4.tar.gz +md5 85a84b0930556794ba1e95aa6313c071 pydantic-2.11.5.tar.gz +sha256 7f853db3d0ce78ce8bbb148c401c2cdd6431b3473c0cdff2755c7690952a7b7a pydantic-2.11.5.tar.gz # Locally computed sha256 checksums sha256 a9e186f3ca16b5eef84318e7a701721351a00cb7b8ae3a4394b67b49e3529ef3 LICENSE
package/python-pydantic/python-pydantic.mk +2 -2
@@ -4,9 +4,9 @@ # ################################################################################ -PYTHON_PYDANTIC_VERSION = 2.11.4 +PYTHON_PYDANTIC_VERSION = 2.11.5 PYTHON_PYDANTIC_SOURCE = pydantic-$(PYTHON_PYDANTIC_VERSION).tar.gz -PYTHON_PYDANTIC_SITE = https://files.pythonhosted.org/packages/77/ab/5250d56ad03884ab5efd07f734203943c8a8ab40d551e208af81d0257bf2 +PYTHON_PYDANTIC_SITE = https://files.pythonhosted.org/packages/f0/86/8ce9040065e8f924d642c58e4a344e33163a07f6b57f836d0d734e0ad3fb PYTHON_PYDANTIC_SETUP_TYPE = hatch PYTHON_PYDANTIC_LICENSE = MIT PYTHON_PYDANTIC_LICENSE_FILES = LICENSE
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 9 lines · Marcus Hoffmann via buildroot
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.
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
Signed-off-by Marcus Hoffmann <[email protected]>
Applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot