@@ -3,21 +3,6 @@ name: Build wheels
3
3
on : [push, pull_request, workflow_dispatch]
4
4
5
5
jobs :
6
- test_prerelease_python :
7
- # needed because manylinux is hesitant to support pre-release python
8
- # so we can't just use cibuildwheel
9
- name : prelease python
10
- runs-on : ubuntu-latest
11
- steps :
12
- - uses : actions/checkout@v2
13
- - uses : actions/setup-python@v2
14
- with :
15
- python-version : ' 3.11-dev'
16
- - run : |
17
- python3.11 -m pip install -e .
18
- python3.11 -m pip install pytest
19
- python3.11 -m pytest
20
-
21
6
build_wheels :
22
7
name : py${{ matrix.python-version }} on ${{ matrix.os }}
23
8
runs-on : ${{ matrix.os }}
@@ -27,30 +12,24 @@ jobs:
27
12
# cibuildwheel builds linux wheels inside a manylinux container
28
13
# it also takes care of procuring the correct python version for us
29
14
os : [ubuntu-latest, windows-latest, macos-latest]
30
- python-version : [36, 37, 38, 39, 310]
15
+ python-version : [36, 37, 38, 39, 310, 311]
16
+
31
17
steps :
32
- - uses : actions/checkout@v2
33
- - uses : actions/setup-python@v2
34
- name : Install Python
35
- with :
36
- python-version : " 3.9"
37
- - name : Install cibuildwheel
38
- run : |
39
- python -m pip install "cibuildwheel==2.1.3"
18
+ - uses : actions/checkout@v3
40
19
- name : Build wheels
20
+
41
21
env :
42
22
CIBW_BUILD : " cp${{ matrix.python-version }}-*"
43
- CIBW_SKIP : " *-manylinux_i686 *-win32"
23
+ CIBW_SKIP : " *-manylinux_i686 *-musllinux_i686 *- win32"
44
24
CIBW_ARCHS_MACOS : " x86_64 arm64"
45
25
CIBW_BUILD_VERBOSITY : 1
46
26
CIBW_BEFORE_TEST : pip install pytest
47
27
CIBW_TEST_COMMAND : pytest {package}
48
- run : |
49
- python -m cibuildwheel --output-dir wheelhouse .
50
- - uses : actions/upload-artifact@v2
28
+ - uses : actions/upload-artifact@v3
51
29
with :
52
30
name : dist
53
31
path : ./wheelhouse/*.whl
32
+
54
33
build_wheels_aarch64 :
55
34
name : py${{ matrix.python-version }} on ${{ matrix.os }} (aarch64)
56
35
runs-on : ${{ matrix.os }}
@@ -60,40 +39,33 @@ jobs:
60
39
# cibuildwheel builds linux wheels inside a manylinux container
61
40
# it also takes care of procuring the correct python version for us
62
41
os : [ubuntu-latest]
63
- python-version : [36, 37, 38, 39, 310]
42
+ python-version : [36, 37, 38, 39, 310, 311 ]
64
43
65
44
steps :
66
- - uses : actions/checkout@v2
67
- - uses : actions/setup-python@v2
68
- name : Install Python
69
- with :
70
- python-version : " 3.9"
45
+ - uses : actions/checkout@v3
71
46
- name : Setup up QEMU
72
- uses : docker/setup-qemu-action@v1
47
+ uses : docker/setup-qemu-action@v2
73
48
with :
74
49
platforms : arm64
75
- - name : Install cibuildwheel
76
- run : |
77
- python -m pip install "cibuildwheel==2.1.3"
78
50
- name : Build wheels
51
+
79
52
env :
80
53
CIBW_BUILD : " cp${{ matrix.python-version }}-*"
81
54
CIBW_ARCHS : aarch64
82
55
CIBW_BUILD_VERBOSITY : 1
83
56
CIBW_BEFORE_TEST : pip install pytest
84
57
CIBW_TEST_COMMAND : pytest {package}
85
- run : |
86
- python -m cibuildwheel --output-dir wheelhouse .
87
- - uses : actions/upload-artifact@v2
58
+ - uses : actions/upload-artifact@v3
88
59
with :
89
60
name : dist
90
61
path : ./wheelhouse/*.whl
62
+
91
63
build_sdist_python_wheel :
92
64
name : sdist and python wheel
93
65
runs-on : ubuntu-latest
94
66
steps :
95
- - uses : actions/checkout@v2
96
- - uses : actions/setup-python@v2
67
+ - uses : actions/checkout@v3
68
+ - uses : actions/setup-python@v4
97
69
name : Install Python
98
70
with :
99
71
python-version : " 3.9"
105
77
run : |
106
78
pip install --upgrade setuptools pip wheel
107
79
python setup.py sdist
108
- - uses : actions/upload-artifact@v2
80
+ - uses : actions/upload-artifact@v3
109
81
with :
110
82
name : dist
111
83
path : |
0 commit comments