Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] package/python-pydal: needs python xml module at runtime
@ 2026-07-26  9:27 Julien Olivain via buildroot
  2026-07-26  9:27 ` [Buildroot] [PATCH 2/2] support/testing: python-pydal: new runtime test Julien Olivain via buildroot
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Julien Olivain via buildroot @ 2026-07-26  9:27 UTC (permalink / raw)
  To: buildroot; +Cc: Julien Olivain, Angelo Compagnucci, James Hilliard

pyDAL is using xmlrpc at runtime. See:
https://github.com/web2py/pydal/blob/v20260313.1/pydal/_compat.py#L114

Signed-off-by: Julien Olivain <ju.o@free.fr>
---
 package/python-pydal/Config.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/python-pydal/Config.in b/package/python-pydal/Config.in
index 204b47a09a..4ed2b934ac 100644
--- a/package/python-pydal/Config.in
+++ b/package/python-pydal/Config.in
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_PYTHON_PYDAL
 	bool "python-pydal"
+	select BR2_PACKAGE_PYTHON3_PYEXPAT # runtime
 	help
 	  pyDAL is a pure Python Database Abstraction Layer.  It
 	  dynamically generates the SQL in real time using the
-- 
2.55.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH 2/2] support/testing: python-pydal: new runtime test
  2026-07-26  9:27 [Buildroot] [PATCH 1/2] package/python-pydal: needs python xml module at runtime Julien Olivain via buildroot
@ 2026-07-26  9:27 ` Julien Olivain via buildroot
  2026-08-02 20:29 ` [Buildroot] [PATCH 1/2] package/python-pydal: needs python xml module at runtime Julien Olivain via buildroot
  2026-08-07 11:53 ` Titouan Christophe via buildroot
  2 siblings, 0 replies; 7+ messages in thread
From: Julien Olivain via buildroot @ 2026-07-26  9:27 UTC (permalink / raw)
  To: buildroot; +Cc: Julien Olivain, Angelo Compagnucci, James Hilliard

Signed-off-by: Julien Olivain <ju.o@free.fr>
---
Patch series tested in:
https://gitlab.com/jolivain/buildroot/-/jobs/15537803280
---
 DEVELOPERS                                           |  2 ++
 support/testing/tests/package/sample_python_pydal.py | 11 +++++++++++
 support/testing/tests/package/test_python_pydal.py   | 12 ++++++++++++
 3 files changed, 25 insertions(+)
 create mode 100644 support/testing/tests/package/sample_python_pydal.py
 create mode 100644 support/testing/tests/package/test_python_pydal.py

diff --git a/DEVELOPERS b/DEVELOPERS
index f2713c7239..4f741f656e 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1857,6 +1857,7 @@ F:	support/testing/tests/package/sample_python_midiutil.py
 F:	support/testing/tests/package/sample_python_ml_dtypes.py
 F:	support/testing/tests/package/sample_python_mpmath.py
 F:	support/testing/tests/package/sample_python_pyalsa.py
+F:	support/testing/tests/package/sample_python_pydal.py
 F:	support/testing/tests/package/sample_python_spake2.py
 F:	support/testing/tests/package/sample_python_sympy.py
 F:	support/testing/tests/package/test_4th.py
@@ -2006,6 +2007,7 @@ F:	support/testing/tests/package/test_python_midiutil.py
 F:	support/testing/tests/package/test_python_ml_dtypes.py
 F:	support/testing/tests/package/test_python_mpmath.py
 F:	support/testing/tests/package/test_python_pyalsa.py
+F:	support/testing/tests/package/test_python_pydal.py
 F:	support/testing/tests/package/test_python_pyqt5.py
 F:	support/testing/tests/package/test_python_pyqt5/
 F:	support/testing/tests/package/test_python_spake2.py
diff --git a/support/testing/tests/package/sample_python_pydal.py b/support/testing/tests/package/sample_python_pydal.py
new file mode 100644
index 0000000000..269fbaffa8
--- /dev/null
+++ b/support/testing/tests/package/sample_python_pydal.py
@@ -0,0 +1,11 @@
+# From:
+# https://github.com/web2py/pydal/tree/v20260313.1#usage-and-documentation
+from pydal import DAL, Field
+db = DAL('sqlite://storage.db')
+db.define_table('thing', Field('name'))
+db.thing.insert(name='Chair')
+query = db.thing.name.startswith('C')
+rows = db(query).select()
+print(rows[0].name)
+assert rows[0].name == "Chair"
+db.commit()
diff --git a/support/testing/tests/package/test_python_pydal.py b/support/testing/tests/package/test_python_pydal.py
new file mode 100644
index 0000000000..b0166c7a8a
--- /dev/null
+++ b/support/testing/tests/package/test_python_pydal.py
@@ -0,0 +1,12 @@
+from tests.package.test_python import TestPythonPackageBase
+
+
+class TestPythonPy3PyDAL(TestPythonPackageBase):
+    __test__ = True
+    config = TestPythonPackageBase.config + \
+        """
+        BR2_PACKAGE_PYTHON3=y
+        BR2_PACKAGE_PYTHON3_SQLITE=y
+        BR2_PACKAGE_PYTHON_PYDAL=y
+        """
+    sample_scripts = ["tests/package/sample_python_pydal.py"]
-- 
2.55.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [Buildroot] [PATCH 1/2] package/python-pydal: needs python xml module at runtime
  2026-07-26  9:27 [Buildroot] [PATCH 1/2] package/python-pydal: needs python xml module at runtime Julien Olivain via buildroot
  2026-07-26  9:27 ` [Buildroot] [PATCH 2/2] support/testing: python-pydal: new runtime test Julien Olivain via buildroot
@ 2026-08-02 20:29 ` Julien Olivain via buildroot
  2026-08-07 11:53 ` Titouan Christophe via buildroot
  2 siblings, 0 replies; 7+ messages in thread
From: Julien Olivain via buildroot @ 2026-08-02 20:29 UTC (permalink / raw)
  To: Julien Olivain; +Cc: buildroot, Angelo Compagnucci, James Hilliard

On 26/07/2026 11:27, Julien Olivain via buildroot wrote:
> pyDAL is using xmlrpc at runtime. See:
> https://github.com/web2py/pydal/blob/v20260313.1/pydal/_compat.py#L114
> 
> Signed-off-by: Julien Olivain <ju.o@free.fr>

Series applied to master.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Buildroot] [PATCH 1/2] package/python-pydal: needs python xml module at runtime
  2026-07-26  9:27 [Buildroot] [PATCH 1/2] package/python-pydal: needs python xml module at runtime Julien Olivain via buildroot
  2026-07-26  9:27 ` [Buildroot] [PATCH 2/2] support/testing: python-pydal: new runtime test Julien Olivain via buildroot
  2026-08-02 20:29 ` [Buildroot] [PATCH 1/2] package/python-pydal: needs python xml module at runtime Julien Olivain via buildroot
@ 2026-08-07 11:53 ` Titouan Christophe via buildroot
  2026-08-10 18:31   ` Julien Olivain via buildroot
  2 siblings, 1 reply; 7+ messages in thread
From: Titouan Christophe via buildroot @ 2026-08-07 11:53 UTC (permalink / raw)
  To: Julien Olivain, buildroot; +Cc: Angelo Compagnucci, James Hilliard

On 26/07/26 11:27, Julien Olivain via buildroot wrote:
> pyDAL is using xmlrpc at runtime. See:
> https://github.com/web2py/pydal/blob/v20260313.1/pydal/_compat.py#L114
>
> Signed-off-by: Julien Olivain <ju.o@free.fr>

Applied to 2025.02.x and 2026.05.x, thanks

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Buildroot] [PATCH 1/2] package/python-pydal: needs python xml module at runtime
  2026-08-07 11:53 ` Titouan Christophe via buildroot
@ 2026-08-10 18:31   ` Julien Olivain via buildroot
  2026-08-14 14:22     ` Titouan Christophe via buildroot
  0 siblings, 1 reply; 7+ messages in thread
From: Julien Olivain via buildroot @ 2026-08-10 18:31 UTC (permalink / raw)
  To: Titouan Christophe; +Cc: buildroot, Angelo Compagnucci, James Hilliard

Hi Titouan,

On 07/08/2026 13:53, Titouan Christophe wrote:
> On 26/07/26 11:27, Julien Olivain via buildroot wrote:
>> pyDAL is using xmlrpc at runtime. See:
>> https://github.com/web2py/pydal/blob/v20260313.1/pydal/_compat.py#L114
>> 
>> Signed-off-by: Julien Olivain <ju.o@free.fr>
> 
> Applied to 2025.02.x and 2026.05.x, thanks

I saw you included other new runtime tests in maintenance branches,
but you skipped the pydal one:
https://gitlab.com/buildroot.org/buildroot/-/commit/67d6e6602fec095084f64560050cb1195dff7765

Is there a specific reason, or did you just missed it?

Best regards,

Julien.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Buildroot] [PATCH 1/2] package/python-pydal: needs python xml module at runtime
  2026-08-10 18:31   ` Julien Olivain via buildroot
@ 2026-08-14 14:22     ` Titouan Christophe via buildroot
  2026-08-14 14:23       ` Titouan Christophe via buildroot
  0 siblings, 1 reply; 7+ messages in thread
From: Titouan Christophe via buildroot @ 2026-08-14 14:22 UTC (permalink / raw)
  To: Julien Olivain; +Cc: buildroot, Angelo Compagnucci, James Hilliard

Hello Julien,

On 10/08/26 20:31, Julien Olivain wrote:
> Hi Titouan,
>
> On 07/08/2026 13:53, Titouan Christophe wrote:
>> On 26/07/26 11:27, Julien Olivain via buildroot wrote:
>>> pyDAL is using xmlrpc at runtime. See:
>>> https://github.com/web2py/pydal/blob/v20260313.1/pydal/_compat.py#L114
>>>
>>> Signed-off-by: Julien Olivain <ju.o@free.fr>
>>
>> Applied to 2025.02.x and 2026.05.x, thanks
>
> I saw you included other new runtime tests in maintenance branches,
> but you skipped the pydal one:
> https://gitlab.com/buildroot.org/buildroot/-/commit/67d6e6602fec095084f64560050cb1195dff7765 
>
>
> Is there a specific reason, or did you just missed it?

It was an overlook from my side, indeed.
Now applied to 2025.02.x, thank you for the heads up !

>
> Best regards,
>
> Julien.

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Buildroot] [PATCH 1/2] package/python-pydal: needs python xml module at runtime
  2026-08-14 14:22     ` Titouan Christophe via buildroot
@ 2026-08-14 14:23       ` Titouan Christophe via buildroot
  0 siblings, 0 replies; 7+ messages in thread
From: Titouan Christophe via buildroot @ 2026-08-14 14:23 UTC (permalink / raw)
  To: Julien Olivain; +Cc: buildroot, Angelo Compagnucci, James Hilliard



On 14/08/26 16:22, Titouan Christophe wrote:
> Hello Julien,
>
> On 10/08/26 20:31, Julien Olivain wrote:
>> Hi Titouan,
>>
>> On 07/08/2026 13:53, Titouan Christophe wrote:
>>> On 26/07/26 11:27, Julien Olivain via buildroot wrote:
>>>> pyDAL is using xmlrpc at runtime. See:
>>>> https://github.com/web2py/pydal/blob/v20260313.1/pydal/_compat.py#L114
>>>>
>>>> Signed-off-by: Julien Olivain <ju.o@free.fr>
>>>
>>> Applied to 2025.02.x and 2026.05.x, thanks
>>
>> I saw you included other new runtime tests in maintenance branches,
>> but you skipped the pydal one:
>> https://gitlab.com/buildroot.org/buildroot/-/commit/67d6e6602fec095084f64560050cb1195dff7765 
>>
>>
>> Is there a specific reason, or did you just missed it?
>
> It was an overlook from my side, indeed.
> Now applied to 2025.02.x, thank you for the heads up !

And also applied to 2026.05.x, sorry for the noise

>
>>
>> Best regards,
>>
>> Julien.
>

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-08-14 14:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-26  9:27 [Buildroot] [PATCH 1/2] package/python-pydal: needs python xml module at runtime Julien Olivain via buildroot
2026-07-26  9:27 ` [Buildroot] [PATCH 2/2] support/testing: python-pydal: new runtime test Julien Olivain via buildroot
2026-08-02 20:29 ` [Buildroot] [PATCH 1/2] package/python-pydal: needs python xml module at runtime Julien Olivain via buildroot
2026-08-07 11:53 ` Titouan Christophe via buildroot
2026-08-10 18:31   ` Julien Olivain via buildroot
2026-08-14 14:22     ` Titouan Christophe via buildroot
2026-08-14 14:23       ` Titouan Christophe via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox