diff mbox series

[PATCHv2,1/3] package/python-twisted: add missing python3-zlib dependency

Message ID 20241101171044.3320155-1-romain.naour@smile.fr
State Accepted
Headers show
Series [PATCHv2,1/3] package/python-twisted: add missing python3-zlib dependency | expand

Commit Message

Romain Naour Nov. 1, 2024, 5:10 p.m. UTC
Currently the test TestPythonTwisted is not broken [1] since it doesn't
test all modules provided by python-twisted package.

But TestPythonTwisted should have failed due to missing zlib in
twisted/web/client.py and twisted/conch modules.

Due to this, other runtime test like TestPythonPy3MagicWormhole or
TestPythonPy3Txtorcon are currently broken [2][3].

Add missing python3-zlib dependency and update
sample_python_twisted.py to load twisted/web/client that uses zlib
module.

[1] https://gitlab.com/buildroot.org/buildroot/-/jobs/8199992685
[2] https://gitlab.com/buildroot.org/buildroot/-/jobs/8199992687
[3] https://gitlab.com/buildroot.org/buildroot/-/jobs/8199992646

Fixes:
https://gitlab.com/buildroot.org/buildroot/-/jobs/8199992687 (TestPythonPy3Txtorcon)

Fixes (partially due to missing python xml dependency):
https://gitlab.com/buildroot.org/buildroot/-/jobs/8199992646 (TestPythonPy3MagicWormhole)

Signed-off-by: Romain Naour <romain.naour@smile.fr>
Cc: James Hilliard <james.hilliard1@gmail.com>
---
It's not clear if all python-twisted modules really requires zlib,
but add python3-zlib to be on the safe side.

v2: update the commit log
---
 package/python-twisted/Config.in                       | 1 +
 support/testing/tests/package/sample_python_twisted.py | 1 +
 2 files changed, 2 insertions(+)

Comments

Julien Olivain Nov. 1, 2024, 9:38 p.m. UTC | #1
On 01/11/2024 18:10, Romain Naour via buildroot wrote:
> Currently the test TestPythonTwisted is not broken [1] since it doesn't
> test all modules provided by python-twisted package.
> 
> But TestPythonTwisted should have failed due to missing zlib in
> twisted/web/client.py and twisted/conch modules.
> 
> Due to this, other runtime test like TestPythonPy3MagicWormhole or
> TestPythonPy3Txtorcon are currently broken [2][3].
> 
> Add missing python3-zlib dependency and update
> sample_python_twisted.py to load twisted/web/client that uses zlib
> module.
> 
> [1] https://gitlab.com/buildroot.org/buildroot/-/jobs/8199992685
> [2] https://gitlab.com/buildroot.org/buildroot/-/jobs/8199992687
> [3] https://gitlab.com/buildroot.org/buildroot/-/jobs/8199992646
> 
> Fixes:
> https://gitlab.com/buildroot.org/buildroot/-/jobs/8199992687 
> (TestPythonPy3Txtorcon)
> 
> Fixes (partially due to missing python xml dependency):
> https://gitlab.com/buildroot.org/buildroot/-/jobs/8199992646 
> (TestPythonPy3MagicWormhole)
> 
> Signed-off-by: Romain Naour <romain.naour@smile.fr>
> Cc: James Hilliard <james.hilliard1@gmail.com>

Series applied to master. Thanks!

> ---
> It's not clear if all python-twisted modules really requires zlib,
> but add python3-zlib to be on the safe side.
> 
> v2: update the commit log
> ---
>  package/python-twisted/Config.in                       | 1 +
>  support/testing/tests/package/sample_python_twisted.py | 1 +
>  2 files changed, 2 insertions(+)
> 
> diff --git a/package/python-twisted/Config.in 
> b/package/python-twisted/Config.in
> index 84786689b7..2d2bc30972 100644
> --- a/package/python-twisted/Config.in
> +++ b/package/python-twisted/Config.in
> @@ -7,6 +7,7 @@ config BR2_PACKAGE_PYTHON_TWISTED
>  	select BR2_PACKAGE_PYTHON_HYPERLINK # runtime
>  	select BR2_PACKAGE_PYTHON_ZOPE_INTERFACE # runtime
>  	select BR2_PACKAGE_PYTHON_TYPING_EXTENSIONS # runtime
> +	select BR2_PACKAGE_PYTHON3_ZLIB # runtime
>  	help
>  	  Twisted is an event-driven networking engine written in
>  	  Python.
> diff --git a/support/testing/tests/package/sample_python_twisted.py 
> b/support/testing/tests/package/sample_python_twisted.py
> index 47d6c5debc..b5540522fc 100644
> --- a/support/testing/tests/package/sample_python_twisted.py
> +++ b/support/testing/tests/package/sample_python_twisted.py
> @@ -1,4 +1,5 @@
>  from twisted.internet import protocol, reactor, endpoints
> +from twisted.web.client import readBody  # noqa: F401
> 
> 
>  class F(protocol.Factory):
> --
> 2.45.0
> 
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
diff mbox series

Patch

diff --git a/package/python-twisted/Config.in b/package/python-twisted/Config.in
index 84786689b7..2d2bc30972 100644
--- a/package/python-twisted/Config.in
+++ b/package/python-twisted/Config.in
@@ -7,6 +7,7 @@  config BR2_PACKAGE_PYTHON_TWISTED
 	select BR2_PACKAGE_PYTHON_HYPERLINK # runtime
 	select BR2_PACKAGE_PYTHON_ZOPE_INTERFACE # runtime
 	select BR2_PACKAGE_PYTHON_TYPING_EXTENSIONS # runtime
+	select BR2_PACKAGE_PYTHON3_ZLIB # runtime
 	help
 	  Twisted is an event-driven networking engine written in
 	  Python.
diff --git a/support/testing/tests/package/sample_python_twisted.py b/support/testing/tests/package/sample_python_twisted.py
index 47d6c5debc..b5540522fc 100644
--- a/support/testing/tests/package/sample_python_twisted.py
+++ b/support/testing/tests/package/sample_python_twisted.py
@@ -1,4 +1,5 @@ 
 from twisted.internet import protocol, reactor, endpoints
+from twisted.web.client import readBody  # noqa: F401
 
 
 class F(protocol.Factory):