Linux GPIO subsystem development
 help / color / mirror / Atom feed
* [libgpiod][PATCH v2 0/3] bindings: python: add support for free-threaded Python
@ 2026-05-27 21:59 Vincent Fazio
  2026-05-27 21:59 ` [libgpiod][PATCH v2 1/3] bindings: python: tests: add multi-threaded tests Vincent Fazio
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Vincent Fazio @ 2026-05-27 21:59 UTC (permalink / raw)
  To: linux-gpio; +Cc: brgl, Vincent Fazio

This short series adds support for free-threaded Python and adds a new
test suite to provide some confidence in the suitability of the bindings
being used within a multi-threaded context.

A changelog is also added to keep track of changes between releases.

Note:
The new threaded test suite was run on multiple machines in excess of
1M+ iterations in an attempt to make sure they were bug free but due
to the nature of the problem, they may not be absolutely error free.

Signed-off-by: Vincent Fazio <vfazio@gmail.com
---
Changes in v2:
- add documentation around the shortDescription stub (Bart)
- add synchronization info to Python class docstrings (Bart)
- Link to v1: https://lore.kernel.org/all/20260522200419.105496-1-vfazio@gmail.com/
---
Vincent Fazio (3):
  bindings: python: tests: add multi-threaded tests
  bindings: python: support free-threaded CPython
  bindings: python: add a changelog

 bindings/python/CHANGELOG.md             |  44 ++
 bindings/python/MANIFEST.in              |   1 +
 bindings/python/README.md                |   8 +-
 bindings/python/gpiod/chip.py            |   3 +
 bindings/python/gpiod/chip_info.py       |   4 +-
 bindings/python/gpiod/edge_event.py      |   2 +
 bindings/python/gpiod/ext/module.c       |   5 +-
 bindings/python/gpiod/info_event.py      |   2 +
 bindings/python/gpiod/line_info.py       |   4 +-
 bindings/python/gpiod/line_request.py    |   3 +
 bindings/python/gpiod/line_settings.py   |   2 +
 bindings/python/pyproject.toml           |   3 +-
 bindings/python/tests/__main__.py        |   1 +
 bindings/python/tests/gpiosim/ext.c      |   3 +
 bindings/python/tests/helpers.py         |   5 +
 bindings/python/tests/meson.build        |   1 +
 bindings/python/tests/system/ext.c       |   3 +
 bindings/python/tests/tests_threading.py | 745 +++++++++++++++++++++++
 docs/python_api.rst                      |   6 +
 19 files changed, 840 insertions(+), 5 deletions(-)
 create mode 100644 bindings/python/CHANGELOG.md
 create mode 100644 bindings/python/tests/tests_threading.py

-- 
2.43.0


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

end of thread, other threads:[~2026-05-28  9:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-27 21:59 [libgpiod][PATCH v2 0/3] bindings: python: add support for free-threaded Python Vincent Fazio
2026-05-27 21:59 ` [libgpiod][PATCH v2 1/3] bindings: python: tests: add multi-threaded tests Vincent Fazio
2026-05-27 21:59 ` [libgpiod][PATCH v2 2/3] bindings: python: support free-threaded CPython Vincent Fazio
2026-05-27 21:59 ` [libgpiod][PATCH v2 3/3] bindings: python: add a changelog Vincent Fazio
2026-05-28  9:03 ` [libgpiod][PATCH v2 0/3] bindings: python: add support for free-threaded Python Bartosz Golaszewski

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