Skip to content

Commit

Permalink
chore: Update python versions in cibuildwheel.yml (#38)
Browse files Browse the repository at this point in the history
* chore: Update python versions in cibuildwheel.yml

* fix

* mod

* mod

* mod

* mod

* mod

* mod
  • Loading branch information
atksh authored Apr 13, 2024
1 parent 4d92cd3 commit 1d7f507
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 14 deletions.
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

0 comments on commit 1d7f507

Please sign in to comment.