From cd95a87b7ae593b7fc023897604c4359c20a976c Mon Sep 17 00:00:00 2001 From: Ruben Vorderman Date: Tue, 13 Oct 2026 08:22:30 +0200 Subject: [PATCH 1/9] update python versions --- .github/workflows/ci.yml | 19 ++++++++++--------- CHANGELOG.rst | 2 ++ pyproject.toml | 2 +- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4320c656..b5b3d1e2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,10 +16,10 @@ jobs: - uses: actions/checkout@v4 with: submodules: recursive - - name: Set up Python 3.10 + - name: Set up Python 3.11 uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.11" - name: Install tox run: pip install tox - name: Lint @@ -39,7 +39,7 @@ jobs: - name: Set up Python 3.10 uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.11" - name: Install isal run: sudo apt-get install libisal-dev - name: Install tox and upgrade setuptools and pip @@ -54,22 +54,23 @@ jobs: strategy: matrix: python-version: - - "3.10" - "3.11" - "3.12" - "3.13" - "3.14" - "3.14t" - - "pypy-3.10" + - "3.15" + - "3.15t" - "pypy-3.11" + - "pypy-3.12" os: ["ubuntu-latest"] include: - os: "macos-15-intel" - python-version: "3.10" + python-version: "3.11" - os: "macos-latest" - python-version: "3.10" + python-version: "3.11" - os: "windows-latest" - python-version: "3.10" + python-version: "3.11" steps: - uses: actions/checkout@v4 with: @@ -106,7 +107,7 @@ jobs: strategy: matrix: python_version: - - "3.10" + - "3.11" steps: - uses: actions/checkout@v4 with: diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 2f4d3bb0..bcd8c197 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -10,6 +10,8 @@ Changelog version 1.8.1-dev ----------------- ++ Python 3.10 and PyPy 3.10 are no longer supported. Added support for PyPy + 3.12 and Python 3.15. + Restore PyPy wheel builds. + Fix zlib streams compressed with a preset dictionary so they can be decoded by standard zlib, including builds linked against older ISA-L releases. diff --git a/pyproject.toml b/pyproject.toml index c1cbce68..d1bbfb46 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,11 +17,11 @@ requires-python = ">=3.9" # Because of setuptools version classifiers = [ "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", "Programming Language :: Python :: 3.14", + "Programming Language :: Python :: 3.15", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Programming Language :: C", From bea5a5a7406b00b4e94310bd378e8bfe89315413 Mon Sep 17 00:00:00 2001 From: Ruben Vorderman Date: Tue, 13 Oct 2026 08:34:07 +0200 Subject: [PATCH 2/9] Update version of setup python --- .github/workflows/ci.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b5b3d1e2..831a0aa6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,8 +17,7 @@ jobs: with: submodules: recursive - name: Set up Python 3.11 - uses: actions/setup-python@v5 - with: + uses: actions/setup-python@v7 with: python-version: "3.11" - name: Install tox run: pip install tox @@ -37,7 +36,7 @@ jobs: with: submodules: recursive - name: Set up Python 3.10 - uses: actions/setup-python@v5 + uses: actions/setup-python@v7 with: python-version: "3.11" - name: Install isal @@ -76,7 +75,7 @@ jobs: with: submodules: recursive - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 + uses: actions/setup-python@v7 with: python-version: ${{ matrix.python-version }} allow-prereleases: true @@ -196,7 +195,7 @@ jobs: with: submodules: recursive fetch-depth: 0 # Fetch everything to get accurately versioned tag. - - uses: actions/setup-python@v2 # Some issues where caused by higher versions. + - uses: actions/setup-python@v7 name: Install Python - name: Install cibuildwheel twine wheel run: python -m pip install cibuildwheel twine wheel From 246a3075bc88f6a7a2129821a309b3cb121672a4 Mon Sep 17 00:00:00 2001 From: Ruben Vorderman Date: Tue, 13 Oct 2026 09:14:26 +0200 Subject: [PATCH 3/9] Check is resize size == 0 to prevent resizing the empty string object --- src/isal/igzip_libmodule.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/isal/igzip_libmodule.c b/src/isal/igzip_libmodule.c index d498145f..657ef07d 100644 --- a/src/isal/igzip_libmodule.c +++ b/src/isal/igzip_libmodule.c @@ -161,8 +161,9 @@ decompress_buf(IgzipDecompressor *self, Py_ssize_t max_length) self->avail_in_real += self->state.avail_in; - if (_PyBytes_Resize(&RetVal, self->state.next_out - - (uint8_t *)PyBytes_AS_STRING(RetVal)) != 0) + Py_ssize_t resize_size = self->state.next_out - (uint8_t *)PyBytes_AS_STRING(RetVal); + /* Check if resize_size = 0 to prevent resizing the empty string object. */ + if (resize_size && _PyBytes_Resize(&RetVal, resize_size) != 0) goto error; return RetVal; From 8d8490feabf32eb9487f97eb7b686014eec839de Mon Sep 17 00:00:00 2001 From: Ruben Vorderman Date: Tue, 13 Oct 2026 09:15:44 +0200 Subject: [PATCH 4/9] Fix workflow file error --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 831a0aa6..baeed689 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,8 @@ jobs: with: submodules: recursive - name: Set up Python 3.11 - uses: actions/setup-python@v7 with: + uses: actions/setup-python@v7 + with: python-version: "3.11" - name: Install tox run: pip install tox From 2a9f4cf068d105184906408032f83aa881fe457e Mon Sep 17 00:00:00 2001 From: Ruben Vorderman Date: Tue, 13 Oct 2026 09:23:08 +0200 Subject: [PATCH 5/9] Revert " Check is resize size == 0 to prevent resizing the empty string object" This reverts commit 246a3075bc88f6a7a2129821a309b3cb121672a4. --- src/isal/igzip_libmodule.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/isal/igzip_libmodule.c b/src/isal/igzip_libmodule.c index 657ef07d..d498145f 100644 --- a/src/isal/igzip_libmodule.c +++ b/src/isal/igzip_libmodule.c @@ -161,9 +161,8 @@ decompress_buf(IgzipDecompressor *self, Py_ssize_t max_length) self->avail_in_real += self->state.avail_in; - Py_ssize_t resize_size = self->state.next_out - (uint8_t *)PyBytes_AS_STRING(RetVal); - /* Check if resize_size = 0 to prevent resizing the empty string object. */ - if (resize_size && _PyBytes_Resize(&RetVal, resize_size) != 0) + if (_PyBytes_Resize(&RetVal, self->state.next_out - + (uint8_t *)PyBytes_AS_STRING(RetVal)) != 0) goto error; return RetVal; From 293abbfc18b8c1e4631d7f1747d223ebbfc653fa Mon Sep 17 00:00:00 2001 From: Ruben Vorderman Date: Tue, 13 Oct 2026 09:26:03 +0200 Subject: [PATCH 6/9] Prevent empty string object from being resized --- src/isal/igzip_libmodule.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/isal/igzip_libmodule.c b/src/isal/igzip_libmodule.c index d498145f..352de9f5 100644 --- a/src/isal/igzip_libmodule.c +++ b/src/isal/igzip_libmodule.c @@ -161,8 +161,10 @@ decompress_buf(IgzipDecompressor *self, Py_ssize_t max_length) self->avail_in_real += self->state.avail_in; - if (_PyBytes_Resize(&RetVal, self->state.next_out - - (uint8_t *)PyBytes_AS_STRING(RetVal)) != 0) + /* Prevent empty string object from being resized. */ + if (PyBytes_GET_SIZE(RetVal) != 0 && + _PyBytes_Resize(&RetVal, self->state.next_out - + (uint8_t *)PyBytes_AS_STRING(RetVal)) != 0) goto error; return RetVal; From fe71225d266a14cb7e106902c57c8be32685fb79 Mon Sep 17 00:00:00 2001 From: Ruben Vorderman Date: Tue, 13 Oct 2026 09:37:50 +0200 Subject: [PATCH 7/9] Use newer miniconda version --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index baeed689..7f1a8e1f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -147,7 +147,7 @@ jobs: with: submodules: recursive - name: Install miniconda. - uses: conda-incubator/setup-miniconda@v3 # https://github.com/conda-incubator/setup-miniconda. + uses: conda-incubator/setup-miniconda@v4 # https://github.com/conda-incubator/setup-miniconda. with: channels: conda-forge,defaults - name: Install requirements (universal) From 200ddb48e5d2bc90ec063f77f6c8aebee53baf29 Mon Sep 17 00:00:00 2001 From: Ruben Vorderman Date: Tue, 13 Oct 2026 09:42:18 +0200 Subject: [PATCH 8/9] Pin python version for dynamic builds --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7f1a8e1f..88870726 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -138,7 +138,7 @@ jobs: strategy: matrix: os: ["ubuntu-latest", "macos-15-intel", "windows-latest"] - python_version: [ "python" ] + python_version: [ "python==3.11" ] include: - os: "ubuntu-latest" python_version: "pypy" From 3c4a67deb696fd74651ccbbe96bb52fe5d9a3a11 Mon Sep 17 00:00:00 2001 From: Ruben Vorderman Date: Tue, 13 Oct 2026 09:44:26 +0200 Subject: [PATCH 9/9] Stop testing pypy versions for dynamic builds. Conda-forge does not support PyPy anymore: https://conda-forge.org/news/2024/08/14/sunsetting-pypy/ --- .github/workflows/ci.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 88870726..e82cebfd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -139,9 +139,6 @@ jobs: matrix: os: ["ubuntu-latest", "macos-15-intel", "windows-latest"] python_version: [ "python==3.11" ] - include: - - os: "ubuntu-latest" - python_version: "pypy" steps: - uses: actions/checkout@v4 with: