diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-03-01 09:31:30 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-03-01 09:31:30 -0500 |
commit | 31d4b0029181879ae3a8869caf38e32c7b8aace7 (patch) | |
tree | c86151d9119fc3a6c6741bb345f7c4d748af74d3 | |
parent | a095d73938a3fee8b56d0de840e0e81bfa52739f (diff) | |
parent | a7c7e180e77b6fd7b7ac8a2935f1d8639cc68944 (diff) | |
download | python-coveragepy-git-31d4b0029181879ae3a8869caf38e32c7b8aace7.tar.gz |
Merge branch 'nedbat/310-kits'
-rw-r--r-- | .github/workflows/kit.yml | 63 | ||||
-rw-r--r-- | requirements/pins.pip | 3 | ||||
-rw-r--r-- | requirements/wheel.pip | 1 |
3 files changed, 62 insertions, 5 deletions
diff --git a/.github/workflows/kit.yml b/.github/workflows/kit.yml index 854b4f29..519d8556 100644 --- a/.github/workflows/kit.yml +++ b/.github/workflows/kit.yml @@ -7,6 +7,10 @@ name: "Kits" on: + push: + branches: + # Don't build kits all the time, but do if the branch is about kits. + - "**/*kit*" workflow_dispatch: defaults: @@ -14,7 +18,7 @@ defaults: shell: bash jobs: - build_wheels: + wheels: name: "Build wheels on ${{ matrix.os }}" runs-on: ${{ matrix.os }} strategy: @@ -49,14 +53,15 @@ jobs: CIBW_SKIP: pp* run: | python -m cibuildwheel --output-dir wheelhouse + ls -al wheelhouse/ - name: "Upload wheels" uses: actions/upload-artifact@v2 with: name: dist - path: ./wheelhouse/*.whl + path: wheelhouse/*.whl - build_sdist: + sdist: name: "Build source distribution" runs-on: ubuntu-latest steps: @@ -71,6 +76,7 @@ jobs: - name: "Build sdist" run: | python setup.py sdist + ls -al dist/ - name: "Upload sdist" uses: actions/upload-artifact@v2 @@ -78,7 +84,7 @@ jobs: name: dist path: dist/*.tar.gz - build_pypy: + pypy: name: "Build PyPy wheels" runs-on: ubuntu-latest steps: @@ -98,6 +104,55 @@ jobs: run: | pypy3 setup.py bdist_wheel --python-tag pp36 pypy3 setup.py bdist_wheel --python-tag pp37 + ls -al dist/ + + - name: "Upload wheels" + uses: actions/upload-artifact@v2 + with: + name: dist + path: dist/*.whl + + prerel: + name: "Build ${{ matrix.python-version }} wheels on ${{ matrix.os }}" + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: + - ubuntu-latest + - windows-latest + - macos-latest + python-version: + - "3.10.0-alpha.5" + fail-fast: false + + steps: + - name: "Check out the repo" + uses: actions/checkout@v2 + + - name: "Install Python ${{ matrix.pyton-version }}" + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: "Install wheel tools" + run: | + python -m pip install -c requirements/pins.pip -r requirements/wheel.pip + + - name: "Build wheel" + run: | + python setup.py bdist_wheel + + - 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/ + ls -al dist/ - name: "Upload wheels" uses: actions/upload-artifact@v2 diff --git a/requirements/pins.pip b/requirements/pins.pip index 04721c8b..a6983bb0 100644 --- a/requirements/pins.pip +++ b/requirements/pins.pip @@ -3,9 +3,10 @@ # Version pins, for use as a constraints file. +auditwheel==3.3.1 cibuildwheel==1.7.0 tox-gh-actions==2.2.0 # setuptools 45.x is py3-only setuptools==44.1.1 -wheel==0.35.1 +wheel==0.36.2 diff --git a/requirements/wheel.pip b/requirements/wheel.pip index f294ab3b..1223cddd 100644 --- a/requirements/wheel.pip +++ b/requirements/wheel.pip @@ -5,5 +5,6 @@ # Things needed to make wheels for coverage.py +auditwheel setuptools wheel |