Skip to content

Commit ce2d4ec

Browse files
committed
build: don't make wheels for pre-release Pythons
1 parent a9ecd8a commit ce2d4ec

File tree

1 file changed

+3
-58
lines changed

1 file changed

+3
-58
lines changed

.github/workflows/kit.yml

+3-58
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
# $ piprepo build /tmp/pypi
1616
# $ python -m pip install -v coverage --index-url=file:///tmp/pypi/simple
1717
#
18+
# Note that cibuildwheel recommends not shipping wheels for pre-release versions
19+
# of Python: https://cibuildwheel.readthedocs.io/en/stable/options/#prerelease-pythons
20+
# So we don't.
1821

1922
name: "Kits"
2023

@@ -223,61 +226,3 @@ jobs:
223226
with:
224227
name: dist
225228
path: dist/*.whl
226-
227-
prerel:
228-
name: "Build pre-rel ${{ matrix.os }} ${{ matrix.py }} wheels"
229-
# Our C extension uses internal fields, which are moving during the 3.11.0
230-
# alpha phases. Don't pre-build wheels.
231-
if: ${{ false }} # true when there are pre-rel, false when not.
232-
runs-on: "${{ matrix.os }}-latest"
233-
strategy:
234-
matrix:
235-
os:
236-
- ubuntu
237-
- windows
238-
- macos
239-
py:
240-
# PYVERSIONS. Available versions:
241-
# https://github.com/actions/python-versions/blob/main/versions-manifest.json
242-
- "3.11.0-beta.1"
243-
fail-fast: false
244-
245-
steps:
246-
- name: "Check out the repo"
247-
uses: actions/checkout@v3
248-
249-
- name: "Install Python ${{ matrix.py }}"
250-
uses: actions/setup-python@v3
251-
with:
252-
python-version: ${{ matrix.py }}
253-
cache: pip
254-
cache-dependency-path: 'requirements/*.pip'
255-
256-
- name: "Install wheel tools"
257-
run: |
258-
python -m pip install -r requirements/kit.pip
259-
260-
- name: "Build wheel"
261-
run: |
262-
python -m build
263-
264-
- name: "Convert to manylinux wheel"
265-
if: runner.os == 'Linux'
266-
run: |
267-
ls -la dist/
268-
auditwheel show dist/*.whl
269-
auditwheel repair dist/*.whl
270-
ls -la wheelhouse/
271-
auditwheel show wheelhouse/*.whl
272-
rm dist/*.whl
273-
mv wheelhouse/*.whl dist/
274-
275-
- name: "List wheels"
276-
run: |
277-
ls -al dist/
278-
279-
- name: "Upload wheels"
280-
uses: actions/upload-artifact@v3
281-
with:
282-
name: dist
283-
path: dist/*.whl

0 commit comments

Comments
 (0)