Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0dd4e58

Browse files
committed
Switch to cibuildwheel GitHub Action
... instead of manual install and run. This should also trigger automatic dependabot alerts.
1 parent 4b311a2 commit 0dd4e58

1 file changed

Lines changed: 5 additions & 18 deletions

File tree

.github/workflows/cibuildwheel.yml

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,8 @@ jobs:
5252
with:
5353
fetch-depth: 0
5454

55-
- uses: actions/setup-python@v4
56-
name: Install Python
57-
with:
58-
python-version: '3.8'
59-
60-
- name: Install cibuildwheel
61-
run: |
62-
python -m pip install cibuildwheel==2.1.1
63-
6455
- name: Build wheels for CPython 3.10
65-
run: |
66-
python -m cibuildwheel --output-dir dist
56+
uses: pypa/[email protected]
6757
env:
6858
CIBW_BUILD: "cp310-*"
6959
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
@@ -73,8 +63,7 @@ jobs:
7363
CIBW_ARCHS: ${{ matrix.cibw_archs }}
7464

7565
- name: Build wheels for CPython 3.9
76-
run: |
77-
python -m cibuildwheel --output-dir dist
66+
uses: pypa/[email protected]
7867
env:
7968
CIBW_BUILD: "cp39-*"
8069
CIBW_MANYLINUX_X86_64_IMAGE: manylinux1
@@ -84,8 +73,7 @@ jobs:
8473
CIBW_ARCHS: ${{ matrix.cibw_archs }}
8574

8675
- name: Build wheels for CPython 3.8
87-
run: |
88-
python -m cibuildwheel --output-dir dist
76+
uses: pypa/[email protected]
8977
env:
9078
CIBW_BUILD: "cp38-*"
9179
CIBW_MANYLINUX_X86_64_IMAGE: manylinux1
@@ -95,8 +83,7 @@ jobs:
9583
CIBW_ARCHS: ${{ matrix.cibw_archs }}
9684

9785
- name: Build wheels for PyPy
98-
run: |
99-
python -m cibuildwheel --output-dir dist
86+
uses: pypa/[email protected]
10087
env:
10188
CIBW_BUILD: "pp38-*"
10289
CIBW_BEFORE_BUILD: pip install certifi oldest-supported-numpy
@@ -106,7 +93,7 @@ jobs:
10693

10794
- name: Validate that LICENSE files are included in wheels
10895
run: |
109-
python ./ci/check_wheel_licenses.py
96+
python3 ./ci/check_wheel_licenses.py
11097
11198
- uses: actions/upload-artifact@v3
11299
with:

0 commit comments

Comments
 (0)