summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-02-28 21:45:23 -0500
committerNed Batchelder <ned@nedbatchelder.com>2021-03-01 07:25:07 -0500
commitacc42005e3e9444f8d83906b721cd1827bc5c7c6 (patch)
treed7676ea2a4563fbec1da1fcb180e090bb6d2862a
parentf06b950c318bcd9cf8bc8ec3a03fb4d0d518b8d9 (diff)
downloadpython-coveragepy-git-nedbat/310-kits.tar.gz
build: build 3.10 wheelsnedbat/310-kits
-rw-r--r--.github/workflows/kit.yml174
-rw-r--r--requirements/pins.pip2
2 files changed, 112 insertions, 64 deletions
diff --git a/.github/workflows/kit.yml b/.github/workflows/kit.yml
index 854b4f29..fd7065f7 100644
--- a/.github/workflows/kit.yml
+++ b/.github/workflows/kit.yml
@@ -8,14 +8,108 @@ name: "Kits"
on:
workflow_dispatch:
+ push:
+ branches:
+ - "nedbat/310-kits"
defaults:
run:
shell: bash
jobs:
- build_wheels:
- name: "Build wheels on ${{ matrix.os }}"
+ #build_wheels:
+ # name: "Build wheels on ${{ matrix.os }}"
+ # runs-on: ${{ matrix.os }}
+ # strategy:
+ # matrix:
+ # os:
+ # - ubuntu-latest
+ # - windows-latest
+ # - macos-latest
+ # fail-fast: false
+ #
+ # steps:
+ # - name: "Check out the repo"
+ # uses: actions/checkout@v2
+ #
+ # - name: "Install Python 3.7"
+ # uses: actions/setup-python@v2
+ # with:
+ # python-version: "3.7"
+ #
+ # - name: "Install cibuildwheel"
+ # run: |
+ # python -m pip install -c requirements/pins.pip cibuildwheel
+ #
+ # - name: "Install Visual C++ for Python 2.7"
+ # if: runner.os == 'Windows'
+ # run: |
+ # choco install vcpython27 -f -y
+ #
+ # - name: "Build wheels"
+ # env:
+ # # Don't build wheels for PyPy.
+ # CIBW_SKIP: pp*
+ # run: |
+ # python -m cibuildwheel --output-dir wheelhouse
+ #
+ # - name: "Upload wheels"
+ # uses: actions/upload-artifact@v2
+ # with:
+ # name: dist
+ # path: ./wheelhouse/*.whl
+ #
+ #build_sdist:
+ # name: "Build source distribution"
+ # runs-on: ubuntu-latest
+ # steps:
+ # - name: "Check out the repo"
+ # uses: actions/checkout@v2
+ #
+ # - name: "Install Python 3.7"
+ # uses: actions/setup-python@v2
+ # with:
+ # python-version: "3.7"
+ #
+ # - name: "Build sdist"
+ # run: |
+ # python setup.py sdist
+ #
+ # - name: "Upload sdist"
+ # uses: actions/upload-artifact@v2
+ # with:
+ # name: dist
+ # path: dist/*.tar.gz
+ #
+ #build_pypy:
+ # name: "Build PyPy wheels"
+ # runs-on: ubuntu-latest
+ # steps:
+ # - name: "Check out the repo"
+ # uses: actions/checkout@v2
+ #
+ # - name: "Install PyPy"
+ # uses: actions/setup-python@v2
+ # with:
+ # python-version: "pypy3"
+ #
+ # - name: "Install requirements"
+ # run: |
+ # pypy3 -m pip install -r requirements/wheel.pip
+ #
+ # - name: "Build wheels"
+ # run: |
+ # pypy3 setup.py bdist_wheel --python-tag pp36
+ # pypy3 setup.py bdist_wheel --python-tag pp37
+ #
+ # - name: "Upload wheels"
+ # uses: actions/upload-artifact@v2
+ # with:
+ # name: dist
+ # path: dist/*.whl
+
+ three_ten:
+ name: "Build 3.10 wheels on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
strategy:
matrix:
@@ -23,81 +117,35 @@ jobs:
- ubuntu-latest
- windows-latest
- macos-latest
+ python-abi:
+ - cp310-cp310
fail-fast: false
steps:
- name: "Check out the repo"
uses: actions/checkout@v2
- - name: "Install Python 3.7"
+ - name: "Install Python 3.10"
uses: actions/setup-python@v2
with:
- python-version: "3.7"
+ python-version: "3.10.0-alpha.5"
- - name: "Install cibuildwheel"
+ - name: "Install wheel"
run: |
- python -m pip install -c requirements/pins.pip cibuildwheel
+ python -m pip install -c requirements/pins.pip -r requirements/wheel.pip
- - name: "Install Visual C++ for Python 2.7"
- if: runner.os == 'Windows'
+ - name: "Build wheel"
run: |
- choco install vcpython27 -f -y
+ python setup.py bdist_wheel
- - name: "Build wheels"
- env:
- # Don't build wheels for PyPy.
- CIBW_SKIP: pp*
+ - name: Convert manylinux2010_x86_64 wheel
+ if: runner.os == 'Linux'
run: |
- python -m cibuildwheel --output-dir wheelhouse
-
- - name: "Upload wheels"
- uses: actions/upload-artifact@v2
- with:
- name: dist
- path: ./wheelhouse/*.whl
-
- build_sdist:
- name: "Build source distribution"
- runs-on: ubuntu-latest
- steps:
- - name: "Check out the repo"
- uses: actions/checkout@v2
-
- - name: "Install Python 3.7"
- uses: actions/setup-python@v2
- with:
- python-version: "3.7"
-
- - name: "Build sdist"
- run: |
- python setup.py sdist
-
- - name: "Upload sdist"
- uses: actions/upload-artifact@v2
- with:
- name: dist
- path: dist/*.tar.gz
-
- build_pypy:
- name: "Build PyPy wheels"
- runs-on: ubuntu-latest
- steps:
- - name: "Check out the repo"
- uses: actions/checkout@v2
-
- - name: "Install PyPy"
- uses: actions/setup-python@v2
- with:
- python-version: "pypy3"
-
- - name: "Install requirements"
- run: |
- pypy3 -m pip install -r requirements/wheel.pip
-
- - name: "Build wheels"
- run: |
- pypy3 setup.py bdist_wheel --python-tag pp36
- pypy3 setup.py bdist_wheel --python-tag pp37
+ ls -la dist/
+ auditwheel show dist/*-${{ matrix.python-abi }}-linux_x86_64.whl
+ auditwheel repair dist/*-${{ matrix.python-abi }}-linux_x86_64.whl
+ ls -l wheelhouse/
+ auditwheel show wheelhouse/*-${{ matrix.python-abi }}-manylinux2010_x86_64.whl
- name: "Upload wheels"
uses: actions/upload-artifact@v2
diff --git a/requirements/pins.pip b/requirements/pins.pip
index 04721c8b..a6053a9c 100644
--- a/requirements/pins.pip
+++ b/requirements/pins.pip
@@ -8,4 +8,4 @@ tox-gh-actions==2.2.0
# setuptools 45.x is py3-only
setuptools==44.1.1
-wheel==0.35.1
+wheel==0.36.2