[Buildroot] [PATCH] package/python-avro: fix capitalizations of Parse

Yann E. MORIN yann.morin.1998 at free.fr
Tue May 17 20:52:31 UTC 2022


Romain, All,

On 2022-05-14 17:05 +0200, Romain Naour spake thusly:
> python-avro 1.11.0 deprecated schema.Parse [1] and actually error
> out when used.
> 
> Fixes:
> https://gitlab.com/buildroot.org/buildroot/-/jobs/2429013770
> 
> [1] https://github.com/apache/avro/commit/3e79dfec8461fb0157f068cff7ba24be8cdfa9d8
> 
> Signed-off-by: Romain Naour <romain.naour at gmail.com>

Applied to master, thanks.

Regards,
Yann E. MORIN.

> ---
>  support/testing/tests/package/sample_python_avro.py | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/support/testing/tests/package/sample_python_avro.py b/support/testing/tests/package/sample_python_avro.py
> index 79d2dcdb22..46363ad2bf 100644
> --- a/support/testing/tests/package/sample_python_avro.py
> +++ b/support/testing/tests/package/sample_python_avro.py
> @@ -1,8 +1,8 @@
>  from io import BytesIO
> -from avro.schema import Parse
> +from avro.schema import parse
>  from avro.io import DatumReader, BinaryDecoder
>  
> -schema = Parse("""{
> +schema = parse("""{
>  "namespace": "org.buildroot.package.python_avro",
>  "type": "record",
>  "name": "Developer",
> -- 
> 2.35.3
> 
> _______________________________________________
> buildroot mailing list
> buildroot at buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'



More information about the buildroot mailing list