Skip to contentSkip to conversation

python3-pydantic: Minor improvements

PATCH Superseded Leon Anavi 2 participants 2 messages Sep 25 – Sep 26

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Leon Anavi

author
#0 lore raw

PATCH 1/1 python3-pydantic: Minor improvements

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.

---
 meta-python/recipes-devtools/python/python3-pydantic_2.13.5.bb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
meta-python/recipes-devtools/python/python3-pydantic_2.13.5.bb +1 -2
index 7c5dcdcb26..4ad7df88de 100644
@@ -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"
Signature · 1 line
2.47.3
#1 lore raw
Quoted 19 lines · Leon Anavi

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.

---
 meta-python/recipes-devtools/python/python3-pydantic_2.13.5.bb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
meta-python/recipes-devtools/python/python3-pydantic_2.13.5.bb +0 -0
index 7c5dcdcb26..4ad7df88de 100644

meta-python/recipes-devtools/python/python3-pydantic_2.13.5.bb LIC_FILES_CHKSUM = "file://LICENSE;md5=09280955509d1c4ca14bae02f21d49a6" · line 15

Quoted 6 lines
meta-python/recipes-devtools/python/python3-pydantic_2.13.5.bb +1 -2
@@ -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"

Thanks for the improvements, can please also include tag in the SRC_URI

Quoted 6 lines
meta-python/recipes-devtools/python/python3-pydantic_2.13.5.bb +0 -1
 DEPENDS += "python3-hatch-fancy-pypi-readme-native"
 
 CVE_PRODUCT = "pydantic:pydantic"
--

2.47.3