diff mbox series

[meta-python] python3-pydantic: Minor improvements

Message ID 20260925172316.2588209-1-leon.anavi@konsulko.com
State Under Review
Headers show
Series [meta-python] python3-pydantic: Minor improvements | expand

Commit Message

Leon Anavi Sept. 25, 2026, 5:23 p.m. UTC
Apply minor improvements:

- Do not explicitly set PV
- Use oe.utils.trim_version('${PV}', 2) in the SRC_URI

This work was sponsored by GOVCERT.LU.

Suggested-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
---
 meta-python/recipes-devtools/python/python3-pydantic_2.13.5.bb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-pydantic_2.13.5.bb b/meta-python/recipes-devtools/python/python3-pydantic_2.13.5.bb
index 7c5dcdcb26..4ad7df88de 100644
--- a/meta-python/recipes-devtools/python/python3-pydantic_2.13.5.bb
+++ b/meta-python/recipes-devtools/python/python3-pydantic_2.13.5.bb
@@ -12,8 +12,7 @@  LIC_FILES_CHKSUM = "file://LICENSE;md5=09280955509d1c4ca14bae02f21d49a6"
 inherit python_hatchling ptest-python-pytest
 
 SRCREV = "001dea020e0809844e5b17666432c9135a976f46"
-PV .= "+git"
-SRC_URI = "git://github.com/pydantic/pydantic;protocol=https;branch=v2.13-fixes"
+SRC_URI = "git://github.com/pydantic/pydantic;protocol=https;branch=v${@oe.utils.trim_version('${PV}', 2)}-fixes"
 DEPENDS += "python3-hatch-fancy-pypi-readme-native"
 
 CVE_PRODUCT = "pydantic:pydantic"