Add no-GIL interpreter support

Add `pytest-run-parallel` as dependency, test no-GIL interpreters in CI, and
mark Cython module as safe for freethreaded interpreters.
This commit is contained in:
Charlie Lin 2025-07-20 11:33:23 -04:00
parent 42f056f3cf
commit 6ced817616
7 changed files with 59 additions and 7 deletions

View file

@ -32,8 +32,9 @@ jobs:
uses: pypa/cibuildwheel@v2.23.3
env:
CIBW_TEST_REQUIRES: "pytest"
CIBW_TEST_COMMAND: "pytest {package}/test"
CIBW_TEST_COMMAND: "PYTHON_GIL=0 pytest {package}/test"
CIBW_SKIP: "pp* cp38-macosx_*"
CIBW_ENABLE: cpython-freerelease
- name: Build sdist
if: runner.os == 'Linux' && runner.arch == 'X64'