Skip to content

Commit

Permalink
build: don't make wheels for pre-release Pythons
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed May 12, 2022
1 parent a9ecd8a commit ce2d4ec
Showing 1 changed file with 3 additions and 58 deletions.
61 changes: 3 additions & 58 deletions .github/workflows/kit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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

0 comments on commit ce2d4ec

Please sign in to comment.