Skip to content

bindings: python: drop dependency on distutils

Bartosz Golaszewski linux-gpio 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected] change-id 20241120-drop-distutils-afcfa1a24c13

Versions newest first

  1. v1 Latest3 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3bindings: python: add .pyi files to EXTRA_DISTbindings/python/gpiod/Makefile.am bindings/python/tests/gpiosim/Makefile.am bindings/python/tests/procname/Makefile.am+3 -00 replies
2/3bindings: python: tests: rename procname to systembindings/python/MANIFEST.in bindings/python/build_tests.py bindings/python/tests/Makefile.am +6 more+11 -110 replies
3/3bindings: python: tests: provide and use system.check_kernel_version()bindings/python/tests/__init__.py bindings/python/tests/system/__init__.py bindings/python/tests/system/_ext.pyi +1 more+45 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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.

---
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,

Signature · 1 line
Bartosz Golaszewski <[email protected]>