From 226e96f8225ff19dd61a9879537986cee9a0952c 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:07:59 +0000 Subject: [PATCH 1/3] spacy-pkuseg: Add version 1.0.2 Signed-off-by: riseproject-dev[bot] <330740410+riseproject-dev[bot]@users.noreply.github.com> --- docs/packages/spacy-pkuseg.yaml | 1 + ...removed-cibuildwheel-free-threaded-s.patch | 34 +++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 patches/spacy-pkuseg/1.0.2/0001-Comment-out-the-removed-cibuildwheel-free-threaded-s.patch diff --git a/docs/packages/spacy-pkuseg.yaml b/docs/packages/spacy-pkuseg.yaml index eadcf334220c..bb60c4982ab8 100644 --- a/docs/packages/spacy-pkuseg.yaml +++ b/docs/packages/spacy-pkuseg.yaml @@ -18,3 +18,4 @@ versions: - filename: spacy_pkuseg-1.0.1-cp314-cp314t-manylinux_2_34_riscv64.manylinux_2_39_riscv64.whl sha256: 6060e9b429f3899dec4c81c8b40183659e3486feaf3650b77441e3fcbfdc939b requires-python: '>=3.9' +- version: 1.0.2 diff --git a/patches/spacy-pkuseg/1.0.2/0001-Comment-out-the-removed-cibuildwheel-free-threaded-s.patch b/patches/spacy-pkuseg/1.0.2/0001-Comment-out-the-removed-cibuildwheel-free-threaded-s.patch new file mode 100644 index 000000000000..16243d550a18 --- /dev/null +++ b/patches/spacy-pkuseg/1.0.2/0001-Comment-out-the-removed-cibuildwheel-free-threaded-s.patch @@ -0,0 +1,34 @@ +From 396b66d276364e68a71e955a8ef5adf9ae8c8c2c Mon Sep 17 00:00:00 2001 +From: Ludovic Henry +Date: Mon, 21 Sep 2026 18:45:37 +0000 +Subject: [PATCH] Comment out the removed cibuildwheel free-threaded-support + option + +cibuildwheel dropped `free-threaded-support` in 3.0: the option is now +rejected outright ("Option 'free-threaded-support' not supported in a +config file"), so any build of this tag with a current cibuildwheel fails +before it starts. + +Upstream's own release workflow still pins cibuildwheel v2.21.3, where +the option is valid, so the tag is not broken for them yet. explosion +made this exact change in thinc (6f3a08b1, "Hack at free-threaded +option"). + +Upstream-Status: To upstream [not yet submitted; explosion made the same change in thinc 6f3a08b1] +--- + pyproject.toml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/pyproject.toml b/pyproject.toml +index af90adf..677fb77 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -10,7 +10,7 @@ build-backend = "setuptools.build_meta" + build = "*" + skip = "pp* cp36* cp37* cp38*" + test-skip = "" +-free-threaded-support = false ++#free-threaded-support = false + + archs = ["native"] + From f8c5fa763066c8c7ccff0b259cc89cdff1f3c9cf Mon Sep 17 00:00:00 2001 From: Ludovic Henry Date: Sat, 31 Oct 2026 04:16:16 +0100 Subject: [PATCH 2/3] build-spacy-pkuseg: tolerate versions without a patch directory Upstream dropped the free-threaded-support option the 1.0.1 patch commented out, so 1.0.2 needs no patch and the git apply glob matched nothing. --- .github/workflows/build-spacy-pkuseg.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-spacy-pkuseg.yml b/.github/workflows/build-spacy-pkuseg.yml index e3e2058223cc..f44ddbc23231 100644 --- a/.github/workflows/build-spacy-pkuseg.yml +++ b/.github/workflows/build-spacy-pkuseg.yml @@ -77,7 +77,12 @@ jobs: persist-credentials: false - name: Patch spacy-pkuseg source - run: git apply python-wheels/patches/spacy-pkuseg/${{ env.SPACY_PKUSEG_VERSION }}/*.patch + # Only some versions need patching (the older tag needed the removed free-threaded-support option commented out; newer tags dropped it), so a missing directory is not an error. + run: | + patches="$PWD/python-wheels/patches/spacy-pkuseg/${{ env.SPACY_PKUSEG_VERSION }}" + if [ -d "$patches" ]; then + git apply "$patches"/*.patch + fi - name: Build wheels uses: pypa/cibuildwheel@1828c10ab37f080699c7b81cea34097c684a7074 # v4.2.0 From 004b39252d4a72a63fcad406527b373c7e66a8b7 Mon Sep 17 00:00:00 2001 From: Ludovic Henry Date: Sat, 31 Oct 2026 16:11:43 +0100 Subject: [PATCH 3/3] spacy-pkuseg: drop the 1.0.2 copy of the free-threaded-support patch Upstream's 1.0.2 pyproject.toml no longer carries the free-threaded-support option the patch comments out, so it does not apply and is not needed. --- ...removed-cibuildwheel-free-threaded-s.patch | 34 ------------------- 1 file changed, 34 deletions(-) delete mode 100644 patches/spacy-pkuseg/1.0.2/0001-Comment-out-the-removed-cibuildwheel-free-threaded-s.patch diff --git a/patches/spacy-pkuseg/1.0.2/0001-Comment-out-the-removed-cibuildwheel-free-threaded-s.patch b/patches/spacy-pkuseg/1.0.2/0001-Comment-out-the-removed-cibuildwheel-free-threaded-s.patch deleted file mode 100644 index 16243d550a18..000000000000 --- a/patches/spacy-pkuseg/1.0.2/0001-Comment-out-the-removed-cibuildwheel-free-threaded-s.patch +++ /dev/null @@ -1,34 +0,0 @@ -From 396b66d276364e68a71e955a8ef5adf9ae8c8c2c Mon Sep 17 00:00:00 2001 -From: Ludovic Henry -Date: Mon, 21 Sep 2026 18:45:37 +0000 -Subject: [PATCH] Comment out the removed cibuildwheel free-threaded-support - option - -cibuildwheel dropped `free-threaded-support` in 3.0: the option is now -rejected outright ("Option 'free-threaded-support' not supported in a -config file"), so any build of this tag with a current cibuildwheel fails -before it starts. - -Upstream's own release workflow still pins cibuildwheel v2.21.3, where -the option is valid, so the tag is not broken for them yet. explosion -made this exact change in thinc (6f3a08b1, "Hack at free-threaded -option"). - -Upstream-Status: To upstream [not yet submitted; explosion made the same change in thinc 6f3a08b1] ---- - pyproject.toml | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/pyproject.toml b/pyproject.toml -index af90adf..677fb77 100644 ---- a/pyproject.toml -+++ b/pyproject.toml -@@ -10,7 +10,7 @@ build-backend = "setuptools.build_meta" - build = "*" - skip = "pp* cp36* cp37* cp38*" - test-skip = "" --free-threaded-support = false -+#free-threaded-support = false - - archs = ["native"] -