From be805beef2481d90e37066a6572a4749fe6d1cad Mon Sep 17 00:00:00 2001 From: "riseproject-dev[bot]" <330740410+riseproject-dev[bot]@users.noreply.github.com> Date: Thu, 29 Oct 2026 09:06:05 +0000 Subject: [PATCH 1/4] pyxdameraulevenshtein: Add version 1.11.0 Signed-off-by: riseproject-dev[bot] <330740410+riseproject-dev[bot]@users.noreply.github.com> --- docs/packages/pyxdameraulevenshtein.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/packages/pyxdameraulevenshtein.yaml b/docs/packages/pyxdameraulevenshtein.yaml index b962a883e372..c20c3eaa5f48 100644 --- a/docs/packages/pyxdameraulevenshtein.yaml +++ b/docs/packages/pyxdameraulevenshtein.yaml @@ -17,3 +17,4 @@ versions: - filename: pyxdameraulevenshtein-1.10.0-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl sha256: 79899e08458649850d5775aa464d6c585f41a12fef15276a37721d815d3b533c requires-python: '>=3.9' +- version: 1.11.0 From 7b15f0be6f3ca77805033a0204d016c8a58117e2 Mon Sep 17 00:00:00 2001 From: Ludovic Henry Date: Sat, 31 Oct 2026 04:19:17 +0100 Subject: [PATCH 2/4] build-pyxdameraulevenshtein: resolve the upstream tag with or without a v prefix 1.11.0 is tagged 1.11.0, older releases are tagged v1.10.0, so the fixed v prefix made the checkout fail. --- .../workflows/build-pyxdameraulevenshtein.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-pyxdameraulevenshtein.yml b/.github/workflows/build-pyxdameraulevenshtein.yml index f8096312e19f..4355f68b6b94 100644 --- a/.github/workflows/build-pyxdameraulevenshtein.yml +++ b/.github/workflows/build-pyxdameraulevenshtein.yml @@ -56,11 +56,26 @@ jobs: PYXDAMERAULEVENSHTEIN_VERSION: ${{ matrix.version }} steps: + # Upstream tags older releases `vX.Y.Z` and newer ones plain `X.Y.Z`; use whichever exists. + - name: Resolve upstream tag + id: tag + run: | + for ref in "v$VERSION" "$VERSION"; do + if git ls-remote --exit-code --tags https://github.com/lanl/pyxDamerauLevenshtein "refs/tags/$ref" >/dev/null; then + echo "ref=$ref" >> "$GITHUB_OUTPUT" + exit 0 + fi + done + echo "no tag for $VERSION in lanl/pyxDamerauLevenshtein" >&2 + exit 1 + env: + VERSION: ${{ env.PYXDAMERAULEVENSHTEIN_VERSION }} + - name: Checkout pyxDamerauLevenshtein v${{ env.PYXDAMERAULEVENSHTEIN_VERSION }} uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: repository: lanl/pyxDamerauLevenshtein - ref: v${{ env.PYXDAMERAULEVENSHTEIN_VERSION }} + ref: ${{ steps.tag.outputs.ref }} persist-credentials: false - name: Build wheels From 008eae595188cbe89169037f6ce29ffd3fbd9def Mon Sep 17 00:00:00 2001 From: Ludovic Henry Date: Sat, 31 Oct 2026 20:12:26 +0100 Subject: [PATCH 3/4] build-pyxdameraulevenshtein: drop -mtune=generic from the compile flags 1.11.0's [tool.cibuildwheel] environment passes -mtune=generic, which GCC rejects on riscv64 ("unknown cpu 'generic' for '-mtune'"). Restate the environment without it. --- .github/workflows/build-pyxdameraulevenshtein.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build-pyxdameraulevenshtein.yml b/.github/workflows/build-pyxdameraulevenshtein.yml index 4355f68b6b94..821af0d4996c 100644 --- a/.github/workflows/build-pyxdameraulevenshtein.yml +++ b/.github/workflows/build-pyxdameraulevenshtein.yml @@ -85,6 +85,10 @@ jobs: only: ${{ matrix.python }}-manylinux_riscv64 env: CIBW_MANYLINUX_RISCV64_IMAGE: ${{ env.MANYLINUX_RISCV64_IMAGE }} + # Restates upstream's [tool.cibuildwheel] environment (an env var replaces it), + # minus -mtune=generic: GCC has no such CPU on riscv64 ("unknown cpu 'generic' + # for '-mtune'"), which fails the first C compile since 1.11.0. + CIBW_ENVIRONMENT: CFLAGS="-O3 -g0 -pipe -fPIC" LDFLAGS="-fPIC" CIBW_TEST_REQUIRES: pytest CIBW_TEST_COMMAND: pytest {package}/tests From ec4011e06cd2f100f3f6c157951c494ecf5d4689 Mon Sep 17 00:00:00 2001 From: Ludovic Henry Date: Sun, 1 Nov 2026 08:12:29 +0100 Subject: [PATCH 4/4] build-pyxdameraulevenshtein: run the cp314t tests with the GIL requested up front The extension does not declare free-threading support, so importing it under cp314t re-enables the GIL with a RuntimeWarning, which upstream's filterwarnings = error turns into a collection failure. PYTHON_GIL=1 gives the same outcome without the warning and is ignored on GIL builds. --- .github/workflows/build-pyxdameraulevenshtein.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/build-pyxdameraulevenshtein.yml b/.github/workflows/build-pyxdameraulevenshtein.yml index 821af0d4996c..5aba0262af6f 100644 --- a/.github/workflows/build-pyxdameraulevenshtein.yml +++ b/.github/workflows/build-pyxdameraulevenshtein.yml @@ -89,6 +89,11 @@ jobs: # minus -mtune=generic: GCC has no such CPU on riscv64 ("unknown cpu 'generic' # for '-mtune'"), which fails the first C compile since 1.11.0. CIBW_ENVIRONMENT: CFLAGS="-O3 -g0 -pipe -fPIC" LDFLAGS="-fPIC" + # The extension does not declare free-threading support, so importing it under + # cp314t re-enables the GIL with a RuntimeWarning that upstream's + # filterwarnings = ["error"] turns fatal at collection; asking for the GIL up + # front is the same outcome without the warning. Ignored on the GIL builds. + CIBW_TEST_ENVIRONMENT: PYTHON_GIL=1 CIBW_TEST_REQUIRES: pytest CIBW_TEST_COMMAND: pytest {package}/tests