summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2022-05-12 17:22:04 -0400
committerNed Batchelder <ned@nedbatchelder.com>2022-05-12 17:54:51 -0400
commitce2d4ecc2a1cc8e47586549f9725385921cbc67c (patch)
tree2d24324968e5e81f11265726ec65ab26558a5023 /.github
parenta9ecd8a80879e9008cf323f7bb6d0308f3b7def9 (diff)
downloadpython-coveragepy-git-ce2d4ecc2a1cc8e47586549f9725385921cbc67c.tar.gz
build: don't make wheels for pre-release Pythons
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/kit.yml61
1 files changed, 3 insertions, 58 deletions
diff --git a/.github/workflows/kit.yml b/.github/workflows/kit.yml
index 84c1893d..80b7204a 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