From ce2d4ecc2a1cc8e47586549f9725385921cbc67c Mon Sep 17 00:00:00 2001
From: Ned Batchelder <ned@nedbatchelder.com>
Date: Thu, 12 May 2022 17:22:04 -0400
Subject: [PATCH] build: don't make wheels for pre-release Pythons

---
 .github/workflows/kit.yml | 61 ++-------------------------------------
 1 file changed, 3 insertions(+), 58 deletions(-)

diff --git a/.github/workflows/kit.yml b/.github/workflows/kit.yml
index 84c1893d9..80b7204af 100644
--- a/.github/workflows/kit.yml
+++ b/.github/workflows/kit.yml
@@ -15,6 +15,9 @@
 #   $ piprepo build /tmp/pypi
 #   $ python -m pip install -v coverage --index-url=file:///tmp/pypi/simple
 #
+# Note that cibuildwheel recommends not shipping wheels for pre-release versions
+# of Python: https://cibuildwheel.readthedocs.io/en/stable/options/#prerelease-pythons
+# So we don't.
 
 name: "Kits"
 
@@ -223,61 +226,3 @@ jobs:
         with:
           name: dist
           path: dist/*.whl
-
-  prerel:
-    name: "Build pre-rel ${{ matrix.os }} ${{ matrix.py }} wheels"
-    # Our C extension uses internal fields, which are moving during the 3.11.0
-    # alpha phases. Don't pre-build wheels.
-    if: ${{ false }}  # true when there are pre-rel, false when not.
-    runs-on: "${{ matrix.os }}-latest"
-    strategy:
-      matrix:
-        os:
-          - ubuntu
-          - windows
-          - macos
-        py:
-          # PYVERSIONS. Available versions:
-          # https://github.com/actions/python-versions/blob/main/versions-manifest.json
-          - "3.11.0-beta.1"
-      fail-fast: false
-
-    steps:
-      - name: "Check out the repo"
-        uses: actions/checkout@v3
-
-      - name: "Install Python ${{ matrix.py }}"
-        uses: actions/setup-python@v3
-        with:
-          python-version: ${{ matrix.py }}
-          cache: pip
-          cache-dependency-path: 'requirements/*.pip'
-
-      - name: "Install wheel tools"
-        run: |
-          python -m pip install -r requirements/kit.pip
-
-      - name: "Build wheel"
-        run: |
-          python -m build
-
-      - name: "Convert to manylinux wheel"
-        if: runner.os == 'Linux'
-        run: |
-          ls -la dist/
-          auditwheel show dist/*.whl
-          auditwheel repair dist/*.whl
-          ls -la wheelhouse/
-          auditwheel show wheelhouse/*.whl
-          rm dist/*.whl
-          mv wheelhouse/*.whl dist/
-
-      - name: "List wheels"
-        run: |
-          ls -al dist/
-
-      - name: "Upload wheels"
-        uses: actions/upload-artifact@v3
-        with:
-          name: dist
-          path: dist/*.whl