Add support for GIL-free Python runtimes #298
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds experimental support for running pyosmium in free-threading mode.
There are no changes to the code required as pyosmium doesn't keep global state and is already reentrant. Objects created by the library are not thread-safe for writing. This is by design to keep overhead low for the usual non-threaded case. It is the user's responsibility to guard write accesses with locks as required. This behaviour is now documented.
Tests needed some restructuring to make them executable in parallel. You can now run the tests using pytest-run-parallel. The CI will now build for 3.13t and 3.14t and test those build in parallel mode.
The PR also enables 3.14 for the CI. Currently the test requiring shapely is disabled because there are no binary wheels for shapely yet and compiling on the fly is a major pain.