Skip to content
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

chore: Update python versions in cibuildwheel.yml #38

Merged
merged 8 commits into from
Apr 13, 2024
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
87 changes: 76 additions & 11 deletions .github/workflows/cibuildwheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ jobs:
python: 310
platform_id: win_amd64
arch: AMD64
- os: windows-latest
python: 311
platform_id: win_amd64
arch: AMD64
- os: windows-latest
python: 312
platform_id: win_amd64
arch: AMD64

# Linux 64 bit manylinux2014
- os: ubuntu-latest
Expand Down Expand Up @@ -70,6 +78,16 @@ jobs:
platform_id: manylinux_x86_64
manylinux_image: manylinux2014
arch: x86_64
- os: ubuntu-latest
python: 311
platform_id: manylinux_x86_64
manylinux_image: manylinux2014
arch: x86_64
- os: ubuntu-latest
python: 312
platform_id: manylinux_x86_64
manylinux_image: manylinux2014
arch: x86_64

# Linux 64 bit aarch64
- os: ubuntu-latest
Expand Down Expand Up @@ -97,53 +115,100 @@ jobs:
platform_id: manylinux_aarch64
manylinux_image: manylinux2014
arch: aarch64
- os: ubuntu-latest
python: 311
platform_id: manylinux_aarch64
manylinux_image: manylinux2014
arch: aarch64
- os: ubuntu-latest
python: 312
platform_id: manylinux_aarch64
manylinux_image: manylinux2014
arch: aarch64

# MacOS x86_64
- os: macos-latest
- os: macos-13
python: 36
platform_id: macosx_x86_64
macosx_deployment_target: 10.14
arch: x86_64
- os: macos-latest
- os: macos-13
python: 37
platform_id: macosx_x86_64
macosx_deployment_target: 10.14
arch: x86_64
- os: macos-latest
- os: macos-13
python: 38
platform_id: macosx_x86_64
macosx_deployment_target: 10.14
arch: x86_64
- os: macos-latest
- os: macos-13
python: 39
platform_id: macosx_x86_64
macosx_deployment_target: 10.14
arch: x86_64
- os: macos-latest
- os: macos-13
python: 310
platform_id: macosx_x86_64
macosx_deployment_target: 10.14
arch: x86_64
- os: macos-13
python: 311
platform_id: macosx_x86_64
macosx_deployment_target: 10.14
arch: x86_64
- os: macos-13
python: 312
platform_id: macosx_x86_64
macosx_deployment_target: 10.14
arch: x86_64

# MacOS arm64
- os: macos-14
python: 38
platform_id: macosx_arm64
macosx_deployment_target: 11.7
arch: arm64
- os: macos-14
python: 39
platform_id: macosx_arm64
macosx_deployment_target: 11.7
arch: arm64
- os: macos-14
python: 310
platform_id: macosx_arm64
macosx_deployment_target: 11.7
arch: arm64
- os: macos-14
python: 311
platform_id: macosx_arm64
macosx_deployment_target: 11.7
arch: arm64
- os: macos-14
python: 312
platform_id: macosx_arm64
macosx_deployment_target: 11.7
arch: arm64


steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/setup-python@v2
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: 3.9
python-version: '3.10'
- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v1
with:
platforms: all
- name: Build wheels
uses: pypa/cibuildwheel@v2.4.0
uses: pypa/cibuildwheel@v2.17.0
env:
CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.manylinux_image }}
CIBW_BUILD: cp${{ matrix.python }}-${{ matrix.platform_id }}
CIBW_TEST_SKIP: "*-macosx_universal2"
CIBW_BEFORE_BUILD: pip install pybind11
CIBW_TEST_COMMAND: pytest {project}/tests -vv
CIBW_TEST_REQUIRES: pytest numpy
Expand All @@ -161,10 +226,10 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/setup-python@v2
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: 3.9
python-version: '3.10'
- name: Build sdist
run: python setup.py sdist
- uses: actions/upload-artifact@v2
Expand Down
4 changes: 1 addition & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
numpy>=1.16,<2.0
pybind11; platform_machine != "x86_64" and platform_machine != "amd64" and platform_machine != "AMD64" and sys_platform == 'darwin' # for m1 mac
cmake; platform_machine != "x86_64" and platform_machine != "amd64" and platform_machine != "AMD64" and sys_platform == 'darwin' # for m1 mac
numpy>=1.16,<2.0
Loading