43
43
- main
44
44
# Release branches
45
45
- " [0-9]+.[0-9]+.X"
46
-
47
- create :
48
46
tags :
49
47
- v*
50
48
49
+ release :
50
+ types : [created]
51
+
51
52
env :
52
53
package-name : ConfigSpace
53
54
65
66
strategy :
66
67
fail-fast : false
67
68
matrix :
68
- py : [cp37, cp38, cp39, cp310]
69
+ # We can drop "i686" once "cp37" is dropped
70
+ py : [cp37, cp38, cp39, cp310, cp311]
69
71
arch : ["x86_64", "i686", "aarch64"]
70
72
system : ["manylinux", "musllinux"]
71
73
74
76
# Not supported by numpy
75
77
- system : " musllinux"
76
78
77
- # Scipy doesn't have a wheel for cp310 i686
79
+ # Scipy lacks some i686 support, which cause the testing of the wheels
80
+ # to fail, as scipy is attempted to be built form scratch
81
+ - py : cp38
82
+ arch : i686
83
+
84
+ - py : cp39
85
+ arch : i686
86
+
78
87
- py : cp310
79
- arch : " i686"
88
+ arch : i686
89
+
90
+ - py : cp311
91
+ arch : i686
80
92
81
93
steps :
82
94
- name : Checkout ${{ env.package-name }}
87
99
uses : docker/setup-qemu-action@v1
88
100
89
101
- name : Build wheels with cibuildwheel to wheelhouse/*.whl
90
- uses : pypa/cibuildwheel@v2.3.1
102
+ uses : pypa/cibuildwheel@v2.11.4
91
103
env :
92
104
CIBW_BUILD : ${{ matrix.py }}-${{ matrix.system }}_*
93
105
CIBW_ARCHS : ${{ matrix.arch }}
@@ -105,7 +117,7 @@ jobs:
105
117
strategy :
106
118
fail-fast : false
107
119
matrix :
108
- py : [cp37, cp38, cp39, cp310]
120
+ py : [cp37, cp38, cp39, cp310, cp311 ]
109
121
arch : ["x86_64", "universal2", "arm64"]
110
122
exclude :
111
123
@@ -121,7 +133,7 @@ jobs:
121
133
uses : actions/checkout@v2
122
134
123
135
- name : Build wheels with cibuildwheel to wheelhouse/*.whl
124
- uses : pypa/cibuildwheel@v2.3.1
136
+ uses : pypa/cibuildwheel@v2.11.4
125
137
env :
126
138
CIBW_BUILD : ${{ matrix.py }}-*
127
139
CIBW_ARCHS : ${{ matrix.arch }}
@@ -139,21 +151,30 @@ jobs:
139
151
strategy :
140
152
fail-fast : false
141
153
matrix :
142
- py : [cp37, cp38, cp39, cp310]
154
+ py : [cp37, cp38, cp39, cp310, cp311 ]
143
155
arch : ["AMD64", "x86"]
156
+
144
157
exclude :
158
+ # Scipy lacks win32 support, which cause the testing of the wheels
159
+ # to fail, as scipy is attempted to be built form scratch
160
+ - py : cp38
161
+ arch : x86
162
+
163
+ - py : cp39
164
+ arch : x86
145
165
146
- # We can't build win32 (x86) with cp310 because numpy doesn't have a win32 wheel
147
166
- py : cp310
148
- arch : " x86"
167
+ arch : x86
149
168
169
+ - py : cp311
170
+ arch : x86
150
171
151
172
steps :
152
173
- name : Checkout ${{ env.package-name }}
153
174
uses : actions/checkout@v2
154
175
155
176
- name : Build wheels with cibuildwheel to wheelhouse/*.whl
156
- uses : pypa/cibuildwheel@v2.3.1
177
+ uses : pypa/cibuildwheel@v2.11.4
157
178
env :
158
179
CIBW_BUILD : ${{ matrix.py }}-*
159
180
CIBW_ARCHS : ${{ matrix.arch }}
@@ -171,7 +192,7 @@ jobs:
171
192
strategy :
172
193
fail-fast : false
173
194
matrix :
174
- py : ["3.7", "3.8", "3.9", "3.10"]
195
+ py : ["3.7", "3.8", "3.9", "3.10", "3.11" ]
175
196
176
197
steps :
177
198
- name : Checkout ${{ env.package-name }}
@@ -184,9 +205,9 @@ jobs:
184
205
185
206
- name : Build source distribution
186
207
run : |
187
- python -m pip install --upgrade pip
188
- python setup.py sdist
189
- echo "sdist_name=$(ls -t dist/${{ env.package-name }}-*.tar.gz | head -n 1)" >> $GITHUB_ENV
208
+ python -m pip install --upgrade pip build
209
+ python -m build -- sdist
210
+ echo "sdist_name=$(ls -t dist/${{ env.package-name }}-*.tar.gz | head -n 1)" >> " $GITHUB_ENV"
190
211
191
212
- name : Twine check ${{ env.package-name }}
192
213
run : |
@@ -223,7 +244,7 @@ jobs:
223
244
needs : [build_linux_wheels, build_macos_wheels, build_windows_wheels, build_sdist]
224
245
225
246
# Only on a tagged release, push
226
- if : startsWith(github.ref, 'refs/tags/v') && github.event_name != 'pull_request'
247
+ if : startsWith(github.ref, 'refs/tags/v') && github.event_name != 'pull_request'
227
248
228
249
steps :
229
250
- name : Checkout ${{ env.package-name }}
0 commit comments