Bump minimum Python to 3.8 for cibuildwheel #59
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Wheels | |
on: [push, pull_request] | |
jobs: | |
build_wheels: | |
name: Build wheels on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-20.04, windows-2019, macOS-11] | |
env: | |
# Seems to have trouble parsing our setup.py, thus: | |
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.8" | |
# Install numpy with a wheel (do NOT compile it): | |
CIBW_BEFORE_BUILD: "pip install --only-binary :all: -r requirements.txt" | |
# There are/were no numpy wheels for these: | |
CIBW_SKIP: pp37-* pp38-* pp39-* cp39-manylinux_i686 cp310-manylinux_i686 cp311-manylinux_i686 *-musllinux_* | |
# Quick test with C code using NumPy C API: | |
CIBW_TEST_COMMAND: "python {package}/Tests/test_Cluster.py" | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # Optional | |
submodules: true # Optional, use if you have submodules | |
- name: Checkout tag/commit | |
run: | | |
git submodule update --init biopython | |
cd biopython | |
# Use commit hash if tag is still pending: | |
git checkout biopython-181 | |
cd .. | |
# Could not work out how to give package path with | |
# uses: pypa/[email protected] | |
- name: Build wheels | |
run: | | |
pipx run cibuildwheel==2.16.2 --output-dir wheelhouse biopython | |
- uses: actions/upload-artifact@v3 | |
with: | |
path: ./wheelhouse/*.whl |