From c06017cb7116470be9c1d0e95c1d8de316612013 Mon Sep 17 00:00:00 2001 From: crusaderky Date: Thu, 11 Dec 2025 16:51:28 +0000 Subject: [PATCH 1/4] WIP wheels CI --- .github/workflows/cibuildwheel.yml | 18 ++++++++++++------ .github/workflows/publish_pypi.yml | 4 ++-- thinc/about.py | 4 ++-- 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/.github/workflows/cibuildwheel.yml b/.github/workflows/cibuildwheel.yml index d4bbc9579..80a7b51cf 100644 --- a/.github/workflows/cibuildwheel.yml +++ b/.github/workflows/cibuildwheel.yml @@ -2,11 +2,17 @@ name: Build on: push: - tags: - # ytf did they invent their own syntax that's almost regex? - # ** matches 'zero or more of any character' - - 'release-v[0-9]+.[0-9]+.[0-9]+**' - - 'prerelease-v[0-9]+.[0-9]+.[0-9]+**' + branches: [main, v8.3.x] + pull_request: + branches: ["*"] + workflow_dispatch: # allows you to trigger manually + +# When this workflow is queued, automatically cancel any previous running +# or pending jobs from the same branch +concurrency: + group: cidbuildwheel-${{ github.ref }} + cancel-in-progress: true + jobs: build_wheels: uses: explosion/gha-cibuildwheel/.github/workflows/cibuildwheel.yml@main @@ -16,6 +22,6 @@ jobs: with: wheel-name-pattern: "thinc-*.whl" pure-python: false + create-release: ${{ startsWith(github.ref, 'refs/tags/release-') || startsWith(github.ref, 'refs/tags/prerelease-') }} secrets: gh-token: ${{ secrets.GITHUB_TOKEN }} - diff --git a/.github/workflows/publish_pypi.yml b/.github/workflows/publish_pypi.yml index ed07f1a3c..e2df4ed4e 100644 --- a/.github/workflows/publish_pypi.yml +++ b/.github/workflows/publish_pypi.yml @@ -1,5 +1,5 @@ -# The cibuildwheel action triggers on creation of a release, this -# triggers on publication. +# The cibuildwheel action triggers on all pushes and PRs; +# this action triggers on release publication. # The expected workflow is to create a draft release and let the wheels # upload, and then hit 'publish', which uploads to PyPi. diff --git a/thinc/about.py b/thinc/about.py index 891a0b058..32d2d2262 100644 --- a/thinc/about.py +++ b/thinc/about.py @@ -1,2 +1,2 @@ -__version__ = "8.3.10" -__release__ = True +__version__ = "8.3.11.dev0" +__release__ = False From b5f31357a1e1d0f58ddcf2ab74560fb085ca3f21 Mon Sep 17 00:00:00 2001 From: crusaderky Date: Mon, 15 Dec 2025 16:18:37 +0000 Subject: [PATCH 2/4] WIP --- .github/workflows/cibuildwheel.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cibuildwheel.yml b/.github/workflows/cibuildwheel.yml index 80a7b51cf..d241c3965 100644 --- a/.github/workflows/cibuildwheel.yml +++ b/.github/workflows/cibuildwheel.yml @@ -22,6 +22,8 @@ jobs: with: wheel-name-pattern: "thinc-*.whl" pure-python: false - create-release: ${{ startsWith(github.ref, 'refs/tags/release-') || startsWith(github.ref, 'refs/tags/prerelease-') }} + create-release: ${{ startsWith(github.ref, 'refs/tags/release-') || startsWith(github.ref, 'refs/tags/prerelease-') && github.repository_owner == 'explosion' }} + nightly-upload: ${{ github.event_name == 'workflow_dispatch' && github.repository_owner == 'explosion' && github.ref == 'refs/heads/v8.3.x' }} secrets: gh-token: ${{ secrets.GITHUB_TOKEN }} + anaconda_nightly_upload_token: ${{ secrets.ANACONDA_ORG_UPLOAD_TOKEN }} From c497ad79405fa039e36971ea3a220256f4671045 Mon Sep 17 00:00:00 2001 From: crusaderky Date: Mon, 15 Dec 2025 16:18:42 +0000 Subject: [PATCH 3/4] DNM --- .github/workflows/cibuildwheel.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cibuildwheel.yml b/.github/workflows/cibuildwheel.yml index d241c3965..1f50dc289 100644 --- a/.github/workflows/cibuildwheel.yml +++ b/.github/workflows/cibuildwheel.yml @@ -15,7 +15,7 @@ concurrency: jobs: build_wheels: - uses: explosion/gha-cibuildwheel/.github/workflows/cibuildwheel.yml@main + uses: crusaderky/gha-cibuildwheel/.github/workflows/cibuildwheel.yml@nightly permissions: contents: write actions: read From 5c67772944181054ab4722f5ece80826f61eb01c Mon Sep 17 00:00:00 2001 From: crusaderky Date: Mon, 15 Dec 2025 16:21:20 +0000 Subject: [PATCH 4/4] WIP --- .github/workflows/cibuildwheel.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cibuildwheel.yml b/.github/workflows/cibuildwheel.yml index 1f50dc289..4823ccbb9 100644 --- a/.github/workflows/cibuildwheel.yml +++ b/.github/workflows/cibuildwheel.yml @@ -22,8 +22,8 @@ jobs: with: wheel-name-pattern: "thinc-*.whl" pure-python: false - create-release: ${{ startsWith(github.ref, 'refs/tags/release-') || startsWith(github.ref, 'refs/tags/prerelease-') && github.repository_owner == 'explosion' }} - nightly-upload: ${{ github.event_name == 'workflow_dispatch' && github.repository_owner == 'explosion' && github.ref == 'refs/heads/v8.3.x' }} + create-release: ${{ startsWith(github.ref, 'refs/tags/release-') || startsWith(github.ref, 'refs/tags/prerelease-') }} + nightly-upload: ${{ github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/v8.3.x' }} secrets: gh-token: ${{ secrets.GITHUB_TOKEN }} anaconda_nightly_upload_token: ${{ secrets.ANACONDA_ORG_UPLOAD_TOKEN }}