This should be 1.87 #99
This file contains hidden or 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: | |
| # macos-13 was an intel runner, macos-14 is apple silicon | |
| os: [ubuntu-22.04, windows-2022, macos-14] | |
| env: | |
| # Seems to have trouble parsing our setup.py, thus: | |
| CIBW_PROJECT_REQUIRES_PYTHON: ">=3.10" | |
| # 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: cp3*-manylinux_i686 *-musllinux_* | |
| # configure cibuildwheel to build native arch & aarch64 too | |
| CIBW_ARCHS_LINUX: auto aarch64 | |
| # Quick test with C code using NumPy C API: | |
| CIBW_TEST_COMMAND: "python {package}/Tests/test_Cluster.py" | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 # Optional | |
| submodules: true # Optional, use if you have submodules | |
| - name: Set up QEMU | |
| if: runner.os == 'Linux' | |
| uses: docker/setup-qemu-action@v4 | |
| with: | |
| platforms: all | |
| - name: Checkout tag/commit | |
| run: | | |
| git submodule update --init biopython | |
| cd biopython | |
| # Use commit hash if tag is still pending: | |
| # Testing prior to version bump and biopython-187 tag: | |
| git checkout 7a9c76cce8c6a58db791be2b12a135af210cedf2 | |
| cd .. | |
| - name: Build wheels | |
| uses: pypa/cibuildwheel@v3.4.0 | |
| with: | |
| package-dir: biopython | |
| output-dir: wheelhouse | |
| - uses: actions/upload-artifact@v7 | |
| with: | |
| name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }} | |
| path: ./wheelhouse/*.whl |