diff mbox series

[meta-python,4/4] pydantic: Upgrade 2.11.7 -> 2.12.0

Message ID 20251013131725.2583786-4-leon.anavi@konsulko.com
State Accepted
Headers show
Series [meta-python,1/4] python3-bitarray: Upgrade 3.7.1 -> 3.7.2 | expand

Commit Message

Leon Anavi Oct. 13, 2025, 1:17 p.m. UTC
Upgrade to release 2.12.0:

- Update V1 copy to v1.10.24
- Add extra parameter to the validate functions
- Add exclude_computed_fields serialization option
- Add preverse_empty_path URL options
- Add union_format parameter to JSON Schema generation
- Add __qualname__ parameter for create_model
- Do not try to infer name from lambda definitions in pipelines API
- Use proper namespace for functions in TypeAdapter
- Use Any for context type annotation in TypeAdapter
- Expose FieldInfo in pydantic.fields.__all__
- Respect validation_alias in @validate_call
- Use Any as context annotation in plugin API
- Use proper stacklevel in warnings when possible

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
---
 .../{python3-pydantic_2.11.7.bb => python3-pydantic_2.12.0.bb}  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-pydantic_2.11.7.bb => python3-pydantic_2.12.0.bb} (97%)

Comments

Khem Raj Oct. 14, 2025, 4:12 a.m. UTC | #1
On Mon, Oct 13, 2025 at 6:17 AM Leon Anavi via lists.openembedded.org
<leon.anavi=konsulko.com@lists.openembedded.org> wrote:
>
> Upgrade to release 2.12.0:
>
> - Update V1 copy to v1.10.24
> - Add extra parameter to the validate functions
> - Add exclude_computed_fields serialization option
> - Add preverse_empty_path URL options
> - Add union_format parameter to JSON Schema generation
> - Add __qualname__ parameter for create_model
> - Do not try to infer name from lambda definitions in pipelines API
> - Use proper namespace for functions in TypeAdapter
> - Use Any for context type annotation in TypeAdapter
> - Expose FieldInfo in pydantic.fields.__all__
> - Respect validation_alias in @validate_call
> - Use Any as context annotation in plugin API
> - Use proper stacklevel in warnings when possible
>

We need to fix python3-lief recipe as to reflect this dependency as
well. It currently has a patch that only handles 2.11
there is upgrade for lief module available too, please address that
recipe along with this change set as well.

> Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
> ---
>  .../{python3-pydantic_2.11.7.bb => python3-pydantic_2.12.0.bb}  | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>  rename meta-python/recipes-devtools/python/{python3-pydantic_2.11.7.bb => python3-pydantic_2.12.0.bb} (97%)
>
> diff --git a/meta-python/recipes-devtools/python/python3-pydantic_2.11.7.bb b/meta-python/recipes-devtools/python/python3-pydantic_2.12.0.bb
> similarity index 97%
> rename from meta-python/recipes-devtools/python/python3-pydantic_2.11.7.bb
> rename to meta-python/recipes-devtools/python/python3-pydantic_2.12.0.bb
> index e603e7dccd..8016b55dfe 100644
> --- a/meta-python/recipes-devtools/python/python3-pydantic_2.11.7.bb
> +++ b/meta-python/recipes-devtools/python/python3-pydantic_2.12.0.bb
> @@ -11,7 +11,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=09280955509d1c4ca14bae02f21d49a6"
>
>  inherit python_hatchling ptest-python-pytest
>
> -SRCREV = "9b52422377d974ffc3de4e8b0bf7faab1acf2ec4"
> +SRCREV = "a7928e692e5a7841c4379d1af1fd37966941dade"
>  PV .= "+git"
>  SRC_URI = "git://github.com/pydantic/pydantic;protocol=https;branch=main"
>  DEPENDS += "python3-hatch-fancy-pypi-readme-native"
> --
> 2.47.3
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#120531): https://lists.openembedded.org/g/openembedded-devel/message/120531
> Mute This Topic: https://lists.openembedded.org/mt/115733948/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
Khem Raj Oct. 14, 2025, 4:27 a.m. UTC | #2
On Mon, Oct 13, 2025 at 9:12 PM Khem Raj <raj.khem@gmail.com> wrote:
>
> On Mon, Oct 13, 2025 at 6:17 AM Leon Anavi via lists.openembedded.org
> <leon.anavi=konsulko.com@lists.openembedded.org> wrote:
> >
> > Upgrade to release 2.12.0:
> >
> > - Update V1 copy to v1.10.24
> > - Add extra parameter to the validate functions
> > - Add exclude_computed_fields serialization option
> > - Add preverse_empty_path URL options
> > - Add union_format parameter to JSON Schema generation
> > - Add __qualname__ parameter for create_model
> > - Do not try to infer name from lambda definitions in pipelines API
> > - Use proper namespace for functions in TypeAdapter
> > - Use Any for context type annotation in TypeAdapter
> > - Expose FieldInfo in pydantic.fields.__all__
> > - Respect validation_alias in @validate_call
> > - Use Any as context annotation in plugin API
> > - Use proper stacklevel in warnings when possible
> >
>
> We need to fix python3-lief recipe as to reflect this dependency as
> well. It currently has a patch that only handles 2.11
> there is upgrade for lief module available too, please address that
> recipe along with this change set as well.

Well, I got hold of it. patches are on ml

>
> > Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
> > ---
> >  .../{python3-pydantic_2.11.7.bb => python3-pydantic_2.12.0.bb}  | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >  rename meta-python/recipes-devtools/python/{python3-pydantic_2.11.7.bb => python3-pydantic_2.12.0.bb} (97%)
> >
> > diff --git a/meta-python/recipes-devtools/python/python3-pydantic_2.11.7.bb b/meta-python/recipes-devtools/python/python3-pydantic_2.12.0.bb
> > similarity index 97%
> > rename from meta-python/recipes-devtools/python/python3-pydantic_2.11.7.bb
> > rename to meta-python/recipes-devtools/python/python3-pydantic_2.12.0.bb
> > index e603e7dccd..8016b55dfe 100644
> > --- a/meta-python/recipes-devtools/python/python3-pydantic_2.11.7.bb
> > +++ b/meta-python/recipes-devtools/python/python3-pydantic_2.12.0.bb
> > @@ -11,7 +11,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=09280955509d1c4ca14bae02f21d49a6"
> >
> >  inherit python_hatchling ptest-python-pytest
> >
> > -SRCREV = "9b52422377d974ffc3de4e8b0bf7faab1acf2ec4"
> > +SRCREV = "a7928e692e5a7841c4379d1af1fd37966941dade"
> >  PV .= "+git"
> >  SRC_URI = "git://github.com/pydantic/pydantic;protocol=https;branch=main"
> >  DEPENDS += "python3-hatch-fancy-pypi-readme-native"
> > --
> > 2.47.3
> >
> >
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> > View/Reply Online (#120531): https://lists.openembedded.org/g/openembedded-devel/message/120531
> > Mute This Topic: https://lists.openembedded.org/mt/115733948/1997914
> > Group Owner: openembedded-devel+owner@lists.openembedded.org
> > Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> > -=-=-=-=-=-=-=-=-=-=-=-
> >
Leon Anavi Oct. 14, 2025, 8:15 a.m. UTC | #3
Hi Khem,

On 10/14/25 07:27, Khem Raj wrote:
> On Mon, Oct 13, 2025 at 9:12 PM Khem Raj<raj.khem@gmail.com> wrote:
>> On Mon, Oct 13, 2025 at 6:17 AM Leon Anavi via lists.openembedded.org
>> <leon.anavi=konsulko.com@lists.openembedded.org> wrote:
>>> Upgrade to release 2.12.0:
>>>
>>> - Update V1 copy to v1.10.24
>>> - Add extra parameter to the validate functions
>>> - Add exclude_computed_fields serialization option
>>> - Add preverse_empty_path URL options
>>> - Add union_format parameter to JSON Schema generation
>>> - Add __qualname__ parameter for create_model
>>> - Do not try to infer name from lambda definitions in pipelines API
>>> - Use proper namespace for functions in TypeAdapter
>>> - Use Any for context type annotation in TypeAdapter
>>> - Expose FieldInfo in pydantic.fields.__all__
>>> - Respect validation_alias in @validate_call
>>> - Use Any as context annotation in plugin API
>>> - Use proper stacklevel in warnings when possible
>>>
>> We need to fix python3-lief recipe as to reflect this dependency as
>> well. It currently has a patch that only handles 2.11
>> there is upgrade for lief module available too, please address that
>> recipe along with this change set as well.
> Well, I got hold of it. patches are on ml
Thank you for taking care of the related python3-lief upgrade. Thanks, Leon
>
>>> Signed-off-by: Leon Anavi<leon.anavi@konsulko.com>
>>> ---
>>>   .../{python3-pydantic_2.11.7.bb => python3-pydantic_2.12.0.bb}  | 2 +-
>>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>>   rename meta-python/recipes-devtools/python/{python3-pydantic_2.11.7.bb => python3-pydantic_2.12.0.bb} (97%)
>>>
>>> diff --git a/meta-python/recipes-devtools/python/python3-pydantic_2.11.7.bb b/meta-python/recipes-devtools/python/python3-pydantic_2.12.0.bb
>>> similarity index 97%
>>> rename from meta-python/recipes-devtools/python/python3-pydantic_2.11.7.bb
>>> rename to meta-python/recipes-devtools/python/python3-pydantic_2.12.0.bb
>>> index e603e7dccd..8016b55dfe 100644
>>> --- a/meta-python/recipes-devtools/python/python3-pydantic_2.11.7.bb
>>> +++ b/meta-python/recipes-devtools/python/python3-pydantic_2.12.0.bb
>>> @@ -11,7 +11,7 @@ LIC_FILES_CHKSUM ="file://LICENSE;md5=09280955509d1c4ca14bae02f21d49a6"
>>>
>>>   inherit python_hatchling ptest-python-pytest
>>>
>>> -SRCREV = "9b52422377d974ffc3de4e8b0bf7faab1acf2ec4"
>>> +SRCREV = "a7928e692e5a7841c4379d1af1fd37966941dade"
>>>   PV .= "+git"
>>>   SRC_URI ="git://github.com/pydantic/pydantic;protocol=https;branch=main"
>>>   DEPENDS += "python3-hatch-fancy-pypi-readme-native"
>>> --
>>> 2.47.3
>>>
>>>
>>> -=-=-=-=-=-=-=-=-=-=-=-
>>> Links: You receive all messages sent to this group.
>>> View/Reply Online (#120531):https://lists.openembedded.org/g/openembedded-devel/message/120531
>>> Mute This Topic:https://lists.openembedded.org/mt/115733948/1997914
>>> Group Owner:openembedded-devel+owner@lists.openembedded.org
>>> Unsubscribe:https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
>>> -=-=-=-=-=-=-=-=-=-=-=-
>>>
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-pydantic_2.11.7.bb b/meta-python/recipes-devtools/python/python3-pydantic_2.12.0.bb
similarity index 97%
rename from meta-python/recipes-devtools/python/python3-pydantic_2.11.7.bb
rename to meta-python/recipes-devtools/python/python3-pydantic_2.12.0.bb
index e603e7dccd..8016b55dfe 100644
--- a/meta-python/recipes-devtools/python/python3-pydantic_2.11.7.bb
+++ b/meta-python/recipes-devtools/python/python3-pydantic_2.12.0.bb
@@ -11,7 +11,7 @@  LIC_FILES_CHKSUM = "file://LICENSE;md5=09280955509d1c4ca14bae02f21d49a6"
 
 inherit python_hatchling ptest-python-pytest
 
-SRCREV = "9b52422377d974ffc3de4e8b0bf7faab1acf2ec4"
+SRCREV = "a7928e692e5a7841c4379d1af1fd37966941dade"
 PV .= "+git"
 SRC_URI = "git://github.com/pydantic/pydantic;protocol=https;branch=main"
 DEPENDS += "python3-hatch-fancy-pypi-readme-native"