Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
68989a3
Add a dummy non-empty environment when using assert_python_{failure,ok}
ellert Mar 14, 2025
26cf5d2
Merge pull request #227 from ellert/non-empty-env
rhpvorderman Mar 17, 2025
d08488b
Update changelog version
rhpvorderman Mar 18, 2025
0215519
Move to setuptools-scm
rhpvorderman May 27, 2025
1da70a5
Include tests in source distribution
rhpvorderman May 27, 2025
26c2b45
Fix CFLAGS on default behavior for later setuptools versions
rhpvorderman May 27, 2025
7366448
Update changelog with build changes
rhpvorderman May 27, 2025
fc7d5a5
Update supported python versions
rhpvorderman May 27, 2025
993f529
Merge pull request #232 from pycompression/modernpackaging
rhpvorderman May 27, 2025
b749782
Mark extensions as free-threading-compatible and build wheels
lysnikolaou May 28, 2025
5ef868b
Fix flush implementation
rhpvorderman Jun 24, 2025
4398326
Add a test for correctly flushing data to disk
rhpvorderman Jun 24, 2025
85e9d48
Add multithreaded flushing fix to the CHANGELOG
rhpvorderman Jun 24, 2025
0fef0a9
Fix test for older versions of python
rhpvorderman Jun 24, 2025
6ab0c15
Merge pull request #234 from pycompression/issue230
rhpvorderman Jun 24, 2025
eb3e5c2
Fix a typo in a comment
ellert Jul 2, 2025
52dba92
Merge pull request #235 from ellert/comment-typo
rhpvorderman Jul 2, 2025
b8ba9d3
Merge branch 'develop' into free-threading
lysnikolaou Sep 8, 2025
ffd757b
Add test for free threading that compresses and decompresses bytes
lysnikolaou Sep 8, 2025
a3a3a15
Test 3.14 on CI
lysnikolaou Sep 8, 2025
b235078
Remove python 3.9 support and add 3.14 support
rhpvorderman Sep 9, 2025
7d204aa
Merge pull request #242 from pycompression/314
rhpvorderman Sep 9, 2025
edf5371
Merge branch 'develop' into free-threading
rhpvorderman Sep 9, 2025
474783e
Only support 3.14 for threaded builds.
rhpvorderman Sep 9, 2025
0b9574a
Fix linting issues
rhpvorderman Sep 9, 2025
9492937
Update test_freethreading.py
rhpvorderman Sep 9, 2025
8e9681d
Credit where it's due
rhpvorderman Sep 9, 2025
bb40ffa
Merge pull request #233 from lysnikolaou/free-threading
rhpvorderman Sep 9, 2025
ddcc966
Prepare release 1.8.0
rhpvorderman Sep 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Mark extensions as free-threading-compatible and build wheels
  • Loading branch information
lysnikolaou committed May 28, 2025
commit b749782cf5253bc1dccb8cdaef32d26c2e96c6ac
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ jobs:
- "3.11"
- "3.12"
- "3.13"
- "3.13t"
- "pypy-3.9"
- "pypy-3.10"
os: ["ubuntu-latest"]
Expand Down Expand Up @@ -215,6 +216,7 @@ jobs:
run: cibuildwheel --output-dir dist
env:
CIBW_SKIP: "*-win32 *-manylinux_i686 cp38-macosx_*arm64 cp39-macosx_*arm64" # Skip 32 bit and problematic mac builds.
CIBW_ENABLE: "cpython-freethreading"
CIBW_ARCHS_LINUX: ${{ matrix.cibw_archs_linux }}
CIBW_BEFORE_ALL_LINUX: ${{ matrix.cibw_before_all_linux }}
# Fully test the build wheels again.
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ version 1.8.0-dev
+ Include test packages in the source distribution, so source distribution
installations can be verified.
+ Fix an issue where some tests failed because they ignored PYTHONPATH.
+ Enable support for free-threading and build free-threaded wheels for
CPython 3.13.

version 1.7.2
-----------------
Expand Down
5 changes: 5 additions & 0 deletions src/isal/_isalmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ PyInit__isal(void)
if (m == NULL) {
return NULL;
}

#ifdef Py_GIL_DISABLED
PyUnstable_Module_SetGIL(m, Py_MOD_GIL_NOT_USED);
#endif

PyModule_AddIntMacro(m, ISAL_MAJOR_VERSION);
PyModule_AddIntMacro(m, ISAL_MINOR_VERSION);
PyModule_AddIntMacro(m, ISAL_PATCH_VERSION);
Expand Down
5 changes: 5 additions & 0 deletions src/isal/igzip_libmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,11 @@ PyInit_igzip_lib(void)
if (m == NULL)
return NULL;

#ifdef Py_GIL_DISABLED
PyUnstable_Module_SetGIL(m, Py_MOD_GIL_NOT_USED);
#endif


IsalError = PyErr_NewException("igzip_lib.IsalError", NULL, NULL);
if (IsalError == NULL) {
return NULL;
Expand Down
4 changes: 4 additions & 0 deletions src/isal/isal_zlibmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -2183,6 +2183,10 @@ PyInit_isal_zlib(void)
return NULL;
}

#ifdef Py_GIL_DISABLED
PyUnstable_Module_SetGIL(m, Py_MOD_GIL_NOT_USED);
#endif

PyObject *igzip_lib_module = PyImport_ImportModule("isal.igzip_lib");
if (igzip_lib_module == NULL) {
return NULL;
Expand Down
Loading