From 2d0434e5a9f486587d90ffab65cb4a17d89bc9b8 Mon Sep 17 00:00:00 2001 From: Ludovic Henry Date: Mon, 14 Sep 2026 17:12:00 +0200 Subject: [PATCH] zlib-ng: pin the wheel version to avoid a setuptools_scm dev version The riscv64-compat patch leaves the checkout dirty relative to the v1.0.0 tag; without SETUPTOOLS_SCM_PRETEND_VERSION, setuptools_scm computes the version from git state and produces a dev-suffixed local version instead of the clean 1.0.0 (published so far: 1.0.1.dev0+g018aed8bf.d20260906). --- .github/workflows/build-zlib-ng.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-zlib-ng.yml b/.github/workflows/build-zlib-ng.yml index 702c0a7e312..fda2be42a90 100644 --- a/.github/workflows/build-zlib-ng.yml +++ b/.github/workflows/build-zlib-ng.yml @@ -70,7 +70,11 @@ jobs: CIBW_BUILD: ${{ matrix.python }}-${{ matrix.libc }}_riscv64 CIBW_MANYLINUX_RISCV64_IMAGE: ${{ env.MANYLINUX_RISCV64_IMAGE }} CIBW_MUSLLINUX_RISCV64_IMAGE: ${{ env.MUSLLINUX_RISCV64_IMAGE }} - CIBW_ENVIRONMENT: CFLAGS="-O3 -DNDEBUG" + # The riscv64-compat patch leaves the checkout dirty relative to the + # tag, so setuptools_scm would otherwise compute a dev version. + CIBW_ENVIRONMENT: >- + CFLAGS="-O3 -DNDEBUG" + SETUPTOOLS_SCM_PRETEND_VERSION=${{ env.ZLIB_NG_VERSION }} CIBW_TEST_REQUIRES: pytest CIBW_TEST_COMMAND: >- pytest {project}/tests/test_zlib_compliance.py