mbox series

[0/3] bindings: python: drop dependency on distutils

Message ID 20241120-drop-distutils-v1-0-7498e8b3babe@linaro.org
Headers show
Series bindings: python: drop dependency on distutils | expand

Message

Bartosz Golaszewski Nov. 20, 2024, 1:18 p.m. UTC
Python tests depend on the distutils package which not only is an
external dependency but is also deprecated. This series replaces it with
version parsing implemented in the C extension.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
Bartosz Golaszewski (3):
      bindings: python: add .pyi files to EXTRA_DIST
      bindings: python: tests: rename procname to system
      bindings: python: tests: provide and use system.check_kernel_version()

 bindings/python/MANIFEST.in                        |  2 +-
 bindings/python/build_tests.py                     | 10 +--
 bindings/python/gpiod/Makefile.am                  |  1 +
 bindings/python/tests/Makefile.am                  |  2 +-
 bindings/python/tests/__init__.py                  | 11 ++-
 bindings/python/tests/__main__.py                  |  4 +-
 bindings/python/tests/gpiosim/Makefile.am          |  1 +
 bindings/python/tests/procname/ext.c               | 42 ------------
 .../python/tests/{procname => system}/Makefile.am  |  1 +
 .../python/tests/{procname => system}/__init__.py  |  4 +-
 .../python/tests/{procname => system}/_ext.pyi     |  1 +
 bindings/python/tests/system/ext.c                 | 79 ++++++++++++++++++++++
 configure.ac                                       |  2 +-
 13 files changed, 100 insertions(+), 60 deletions(-)
---
base-commit: 0505dc36435b6d87523f530192d6025fc94222f3
change-id: 20241120-drop-distutils-afcfa1a24c13

Best regards,

Comments

Bartosz Golaszewski Nov. 25, 2024, 9:10 a.m. UTC | #1
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>


On Wed, 20 Nov 2024 14:18:17 +0100, Bartosz Golaszewski wrote:
> Python tests depend on the distutils package which not only is an
> external dependency but is also deprecated. This series replaces it with
> version parsing implemented in the C extension.
> 
> 

Applied, thanks!

[1/3] bindings: python: add .pyi files to EXTRA_DIST
      commit: 93613618d25d257d387fe146cb5e8edb1da728b0
[2/3] bindings: python: tests: rename procname to system
      commit: aa5a1e92b1487f8ebaa71e78537226a36dd70632
[3/3] bindings: python: tests: provide and use system.check_kernel_version()
      commit: db19ece3c5d5cf5f4f9af6473285de84a6a7e388

Best regards,