diff mbox series

[meta-python,6/6] python3-eth-utils: Upgrade 5.2.0 -> 5.3.0

Message ID 20250417123231.3063208-6-leon.anavi@konsulko.com
State Under Review
Headers show
Series [meta-python,1/6] python3-yarl: Upgrade 1.19.0 -> 1.20.0 | expand

Commit Message

Leon Anavi April 17, 2025, 12:32 p.m. UTC
Upgrade to release 5.3.0:

- Replace arg["name"] with arg.get("name") to correctly handle
  optional names
- Add new methods: to_wei_decimals, and from_wei_decimals which
  take a number instead of a string
- Add CamelModel pydantic model for validating objects and
  serializing to camelCase when used with by_alias=True, with
  the general expectation of a well-formed JSON-RPC object.

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
---
 .../{python3-eth-utils_5.2.0.bb => python3-eth-utils_5.3.0.bb} | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-eth-utils_5.2.0.bb => python3-eth-utils_5.3.0.bb} (80%)

Comments

Khem Raj April 18, 2025, 2:20 a.m. UTC | #1
On Thu, Apr 17, 2025 at 5:32 AM Leon Anavi via lists.openembedded.org
<leon.anavi=konsulko.com@lists.openembedded.org> wrote:
>
> Upgrade to release 5.3.0:
>
> - Replace arg["name"] with arg.get("name") to correctly handle
>   optional names
> - Add new methods: to_wei_decimals, and from_wei_decimals which
>   take a number instead of a string
> - Add CamelModel pydantic model for validating objects and
>   serializing to camelCase when used with by_alias=True, with
>   the general expectation of a well-formed JSON-RPC object.
>
> Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
> ---
>  .../{python3-eth-utils_5.2.0.bb => python3-eth-utils_5.3.0.bb} | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>  rename meta-python/recipes-devtools/python/{python3-eth-utils_5.2.0.bb => python3-eth-utils_5.3.0.bb} (80%)
>
> diff --git a/meta-python/recipes-devtools/python/python3-eth-utils_5.2.0.bb b/meta-python/recipes-devtools/python/python3-eth-utils_5.3.0.bb
> similarity index 80%
> rename from meta-python/recipes-devtools/python/python3-eth-utils_5.2.0.bb
> rename to meta-python/recipes-devtools/python/python3-eth-utils_5.3.0.bb
> index 435d032a84..84db8b32b3 100644
> --- a/meta-python/recipes-devtools/python/python3-eth-utils_5.2.0.bb
> +++ b/meta-python/recipes-devtools/python/python3-eth-utils_5.3.0.bb
> @@ -4,7 +4,7 @@ SECTION = "devel/python"
>  LICENSE = "MIT"
>  LIC_FILES_CHKSUM = "file://LICENSE;md5=d3f53e7cc5bf80b16eff1f4a38c73182"
>
> -SRC_URI[sha256sum] = "17e474eb654df6e18f20797b22c6caabb77415a996b3ba0f3cc8df3437463134"
> +SRC_URI[sha256sum] = "1f096867ac6be895f456fa3acb26e9573ae66e753abad9208f316d24d6178156"
>
>  PYPI_PACKAGE = "eth_utils"
>  UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}"
> @@ -16,4 +16,5 @@ RDEPENDS:${PN} += " \
>      python3-eth-typing \
>      python3-setuptools \
>      python3-toolz \
> +    python3-pydantic \

pydantic module is not buildable on riscv32 so please add that same
list here as well now.

COMPATIBLE_HOST:riscv32 = "null"


>  "
> --
> 2.39.5
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#116936): https://lists.openembedded.org/g/openembedded-devel/message/116936
> Mute This Topic: https://lists.openembedded.org/mt/112312253/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
Leon Anavi April 18, 2025, 10:51 a.m. UTC | #2
Hi Khem,

On 18.04.25 г. 5:20 ч., Khem Raj wrote:
> On Thu, Apr 17, 2025 at 5:32 AM Leon Anavi via lists.openembedded.org
> <leon.anavi=konsulko.com@lists.openembedded.org> wrote:
>> Upgrade to release 5.3.0:
>>
>> - Replace arg["name"] with arg.get("name") to correctly handle
>>    optional names
>> - Add new methods: to_wei_decimals, and from_wei_decimals which
>>    take a number instead of a string
>> - Add CamelModel pydantic model for validating objects and
>>    serializing to camelCase when used with by_alias=True, with
>>    the general expectation of a well-formed JSON-RPC object.
>>
>> Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
>> ---
>>   .../{python3-eth-utils_5.2.0.bb => python3-eth-utils_5.3.0.bb} | 3 ++-
>>   1 file changed, 2 insertions(+), 1 deletion(-)
>>   rename meta-python/recipes-devtools/python/{python3-eth-utils_5.2.0.bb => python3-eth-utils_5.3.0.bb} (80%)
>>
>> diff --git a/meta-python/recipes-devtools/python/python3-eth-utils_5.2.0.bb b/meta-python/recipes-devtools/python/python3-eth-utils_5.3.0.bb
>> similarity index 80%
>> rename from meta-python/recipes-devtools/python/python3-eth-utils_5.2.0.bb
>> rename to meta-python/recipes-devtools/python/python3-eth-utils_5.3.0.bb
>> index 435d032a84..84db8b32b3 100644
>> --- a/meta-python/recipes-devtools/python/python3-eth-utils_5.2.0.bb
>> +++ b/meta-python/recipes-devtools/python/python3-eth-utils_5.3.0.bb
>> @@ -4,7 +4,7 @@ SECTION = "devel/python"
>>   LICENSE = "MIT"
>>   LIC_FILES_CHKSUM = "file://LICENSE;md5=d3f53e7cc5bf80b16eff1f4a38c73182"
>>
>> -SRC_URI[sha256sum] = "17e474eb654df6e18f20797b22c6caabb77415a996b3ba0f3cc8df3437463134"
>> +SRC_URI[sha256sum] = "1f096867ac6be895f456fa3acb26e9573ae66e753abad9208f316d24d6178156"
>>
>>   PYPI_PACKAGE = "eth_utils"
>>   UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}"
>> @@ -16,4 +16,5 @@ RDEPENDS:${PN} += " \
>>       python3-eth-typing \
>>       python3-setuptools \
>>       python3-toolz \
>> +    python3-pydantic \
> pydantic module is not buildable on riscv32 so please add that same
> list here as well now.
>
> COMPATIBLE_HOST:riscv32 = "null"

Thank you for the code review. I've just sent version 2 of the patch.

Best regards,
Leon

>
>
>>   "
>> --
>> 2.39.5
>>
>>
>> -=-=-=-=-=-=-=-=-=-=-=-
>> Links: You receive all messages sent to this group.
>> View/Reply Online (#116936): https://lists.openembedded.org/g/openembedded-devel/message/116936
>> Mute This Topic: https://lists.openembedded.org/mt/112312253/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-eth-utils_5.2.0.bb b/meta-python/recipes-devtools/python/python3-eth-utils_5.3.0.bb
similarity index 80%
rename from meta-python/recipes-devtools/python/python3-eth-utils_5.2.0.bb
rename to meta-python/recipes-devtools/python/python3-eth-utils_5.3.0.bb
index 435d032a84..84db8b32b3 100644
--- a/meta-python/recipes-devtools/python/python3-eth-utils_5.2.0.bb
+++ b/meta-python/recipes-devtools/python/python3-eth-utils_5.3.0.bb
@@ -4,7 +4,7 @@  SECTION = "devel/python"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=d3f53e7cc5bf80b16eff1f4a38c73182"
 
-SRC_URI[sha256sum] = "17e474eb654df6e18f20797b22c6caabb77415a996b3ba0f3cc8df3437463134"
+SRC_URI[sha256sum] = "1f096867ac6be895f456fa3acb26e9573ae66e753abad9208f316d24d6178156"
 
 PYPI_PACKAGE = "eth_utils"
 UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}"
@@ -16,4 +16,5 @@  RDEPENDS:${PN} += " \
     python3-eth-typing \
     python3-setuptools \
     python3-toolz \
+    python3-pydantic \
 "