From c422f371408e67fcd406e812aea9d2bcfb38951b Mon Sep 17 00:00:00 2001 From: Charlie Lin Date: Fri, 22 Aug 2025 22:10:45 +0000 Subject: [PATCH 1/2] wtf --- Cargo.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 73ce919d..50fdbaf0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -313,7 +313,7 @@ dependencies = [ [[package]] name = "python-zstandard" -version = "0.24.0-pre" +version = "0.25.0-pre" dependencies = [ "libc", "num_cpus", From 2d305d871bbc19989fc8022bc061a89a7ef587ad Mon Sep 17 00:00:00 2001 From: Charlie Lin Date: Fri, 22 Aug 2025 22:12:58 +0000 Subject: [PATCH 2/2] Add 3.13t and 3.14 support in CI --- .github/workflows/test.yml | 14 +++++++++----- .github/workflows/typing.yml | 2 ++ .github/workflows/wheel.yml | 11 ++++++++++- 3 files changed, 21 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7ede98ae..5bd8c871 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,7 +22,9 @@ jobs: - '3.11' - '3.12' - '3.13' - - '3.14.0-rc.2' + - '3.13t' + - '3.14' + - '3.14t' arch: - 'arm64' - 'x86' @@ -77,9 +79,10 @@ jobs: with: python-version: ${{ matrix.py }} architecture: ${{ matrix.arch }} + allow-prereleases: true - name: Install Rust - if: matrix.arch != 'x86' && matrix.py != '3.14.0-rc.2' + if: matrix.arch != 'x86' && (matrix.py != '3.14' || matrix.py != '3.14t') uses: dtolnay/rust-toolchain@b3b07ba8b418998c39fb20f53e8b695cdcc8de1b # v1 with: toolchain: stable @@ -96,14 +99,14 @@ jobs: python -m pip install --require-hashes -r ci/requirements.txt - name: Build (Rust) - if: matrix.arch != 'x86' && matrix.py != '3.14.0-rc.2' + if: matrix.arch != 'x86' && (matrix.py != '3.14' || matrix.py != '3.14t') env: PIP_CONSTRAINT: 'ci/constraints.txt' run: | python -m pip -v install --config-settings='--build-option=--rust-backend' -e . - name: Build (No Rust) - if: matrix.arch == 'x86' || matrix.py == '3.14.0-rc.2' + if: matrix.arch == 'x86' || matrix.py == '3.14' || matrix.py == '3.14t' env: PIP_CONSTRAINT: 'ci/constraints.txt' run: | @@ -114,13 +117,14 @@ jobs: pytest --numprocesses=auto --hypothesis-profile=${HYPOTHESIS_PROFILE} -v tests/ - name: Test CFFI Backend + if: matrix.py != '3.13t' env: PYTHON_ZSTANDARD_IMPORT_POLICY: 'cffi' run: | pytest --numprocesses=auto --hypothesis-profile=${HYPOTHESIS_PROFILE} -v tests/ - name: Test Rust Backend - if: matrix.arch != 'x86' && matrix.py != '3.14.0-rc.2' + if: matrix.arch != 'x86' && (matrix.py != '3.14' || matrix.py != '3.14t' ) # Rust backend is currently experimental. So ignore failures in it. continue-on-error: true env: diff --git a/.github/workflows/typing.yml b/.github/workflows/typing.yml index 4ad483ac..7d56e7d0 100644 --- a/.github/workflows/typing.yml +++ b/.github/workflows/typing.yml @@ -15,7 +15,9 @@ jobs: - '3.11' - '3.12' - '3.13' + - '3.13t' - '3.14' + - '3.14t' runs-on: 'ubuntu-24.04' steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 diff --git a/.github/workflows/wheel.yml b/.github/workflows/wheel.yml index c993e5c8..d8af256e 100644 --- a/.github/workflows/wheel.yml +++ b/.github/workflows/wheel.yml @@ -29,7 +29,9 @@ jobs: - 'cp311-cp311' - 'cp312-cp312' - 'cp313-cp313' + - 'cp313-cp313t' - 'cp314-cp314' + - 'cp314-cp314t' exclude: - image: 'musllinux_1_1_aarch64' py: 'cp314-cp314' @@ -65,7 +67,9 @@ jobs: - 'cp311' - 'cp312' - 'cp313' + - 'cp313t' - 'cp314' + - 'cp314t' arch: - 'arm64' - 'x86_64' @@ -74,7 +78,9 @@ jobs: CIBW_ARCHS: ${{ matrix.arch }} CIBW_BUILD: ${{ matrix.py }}-* CIBW_BUILD_VERBOSITY: '1' + CIBW_ENABLE: cpython-prerelease cpython-freethreading ZSTD_WARNINGS_AS_ERRORS: '1' + steps: - name: Set up Python uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 @@ -109,7 +115,9 @@ jobs: - '3.11' - '3.12' - '3.13' - - '3.14.0-rc.2' + - '3.13t' + - '3.14' + - '3.14t' arch: - 'x86' - 'x64' @@ -130,6 +138,7 @@ jobs: with: python-version: ${{ matrix.py }} architecture: ${{ matrix.arch }} + allow-prereleases: true - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 with: