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 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