Skip to content

bindings: python: add support for free-threaded Python

Vincent Fazio linux-gpio 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyIn review
  2. v13 patches 7 repliesSuperseded

Changes in v2 from the cover letter

- add documentation around the shortDescription stub (Bart)
- add synchronization info to Python class docstrings (Bart)
- Link to v1: https://lore.kernel.org/all/[email protected]/
---
Vincent Fazio (3):
bindings: python: tests: add multi-threaded tests
bindings: python: support free-threaded CPython
bindings: python: add a changelog

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3bindings: python: tests: add multi-threaded testsbindings/python/tests/__main__.py bindings/python/tests/helpers.py bindings/python/tests/meson.build +1 more+749 -00 replies
2/3bindings: python: support free-threaded CPythonbindings/python/README.md bindings/python/gpiod/chip.py bindings/python/gpiod/chip_info.py +11 more+45 -50 replies
3/3bindings: python: add a changelogbindings/python/CHANGELOG.md bindings/python/MANIFEST.in bindings/python/pyproject.toml+46 -00 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [libgpiod][PATCH v2 0/3] bindings: python: add support for free-threaded Python

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.

---
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/[email protected]/
---
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
Signature · 1 line
2.43.0