Skip to content

Add aarch64 wheels for Python 3.7 and fix manylinux versions #626

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Mar 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 18 additions & 8 deletions .github/workflows/wheel_tests_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,35 @@ env:
# CIBW_BEFORE_BUILD: pip install cython
CIBW_TEST_REQUIRES: pytest
CIBW_TEST_COMMAND: pytest --pyargs pywt
CIBW_ENVIRONMENT: PIP_PREFER_BINARY=1


jobs:
build_linux_37_and_above_wheels:
name: Build python ${{ matrix.cibw_python }} wheels on ${{ matrix.os }}
name: Build python ${{ matrix.cibw_python }} ${{ matrix.cibw_arch }} wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-18.04]
cibw_python: [ "cp37-*", "cp38-*" ]
cibw_manylinux: [ manylinux1 ]
cibw_python: [ "cp38-*", "cp39-*" ]
cibw_manylinux: [ manylinux2014 ]
cibw_arch: [ "x86_64", "i686" ]
include:
# manylinux2010 for Python 3.7 cases
- os: ubuntu-18.04
cibw_python: "cp37-*"
cibw_manylinux: manylinux2010
cibw_arch: "x86_64"
- os: ubuntu-18.04
cibw_python: "cp39-*"
cibw_python: "cp37-*"
cibw_manylinux: manylinux2010
cibw_arch: "i686"
# no i686 NumPy 1.21.x wheel for Python 3.10
- os: ubuntu-18.04
cibw_python: "cp310-*"
cibw_manylinux: manylinux2014
cibw_arch: "x86_64"
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -44,9 +54,10 @@ jobs:
python -m cibuildwheel --output-dir dist
env:
CIBW_BUILD: ${{ matrix.cibw_python }}
CIBW_ARCHS_LINUX: x86_64 i686
CIBW_ARCHS_LINUX: ${{ matrix.cibw_arch }}
CIBW_SKIP: "*-musllinux_*"
CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.cibw_manylinux }}
CIBW_MANYLINUX_I686_IMAGE: ${{ matrix.cibw_manylinux }}
CIBW_MANYLINUX_I686_IMAGE: "manylinux2010"
- uses: actions/upload-artifact@v2
with:
name: wheels
Expand All @@ -59,7 +70,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-18.04]
cibw_python: [ "cp38-*" , "cp39-*", "cp310-*"]
cibw_python: [ "cp37-*" , "cp38-*" , "cp39-*", "cp310-*"]
cibw_manylinux: [ manylinux2014 ]
steps:
- uses: actions/checkout@v2
Expand All @@ -84,7 +95,6 @@ jobs:
CIBW_ARCHS_LINUX: aarch64
CIBW_SKIP: "*-musllinux_*"
CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.cibw_manylinux }}
CIBW_MANYLINUX_I686_IMAGE: ${{ matrix.cibw_manylinux }}
- uses: actions/upload-artifact@v2
with:
name: wheels
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ requires = [

# numpy 1.19 was the first minor release to provide aarch64 wheels, but
# wheels require fixes contained in numpy 1.19.2
"numpy==1.19.2; python_version=='3.7' and platform_machine=='aarch64'",
"numpy==1.19.2; python_version=='3.8' and platform_machine=='aarch64'",
# aarch64 for py39 is covered by default requirement below

Expand Down