4343 - main
4444 # Release branches
4545 - " [0-9]+.[0-9]+.X"
46-
47- create :
4846 tags :
4947 - v*
5048
49+ release :
50+ types : [created]
51+
5152env :
5253 package-name : ConfigSpace
5354
6566 strategy :
6667 fail-fast : false
6768 matrix :
68- py : [cp37, cp38, cp39, cp310]
69+ # We can drop "i686" once "cp37" is dropped
70+ py : [cp37, cp38, cp39, cp310, cp311]
6971 arch : ["x86_64", "i686", "aarch64"]
7072 system : ["manylinux", "musllinux"]
7173
7476 # Not supported by numpy
7577 - system : " musllinux"
7678
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+
7887 - py : cp310
79- arch : " i686"
88+ arch : i686
89+
90+ - py : cp311
91+ arch : i686
8092
8193 steps :
8294 - name : Checkout ${{ env.package-name }}
8799 uses : docker/setup-qemu-action@v1
88100
89101 - name : Build wheels with cibuildwheel to wheelhouse/*.whl
90- uses : pypa/cibuildwheel@v2.3.1
102+ uses : pypa/cibuildwheel@v2.11.4
91103 env :
92104 CIBW_BUILD : ${{ matrix.py }}-${{ matrix.system }}_*
93105 CIBW_ARCHS : ${{ matrix.arch }}
@@ -105,7 +117,7 @@ jobs:
105117 strategy :
106118 fail-fast : false
107119 matrix :
108- py : [cp37, cp38, cp39, cp310]
120+ py : [cp37, cp38, cp39, cp310, cp311 ]
109121 arch : ["x86_64", "universal2", "arm64"]
110122 exclude :
111123
@@ -121,7 +133,7 @@ jobs:
121133 uses : actions/checkout@v2
122134
123135 - name : Build wheels with cibuildwheel to wheelhouse/*.whl
124- uses : pypa/cibuildwheel@v2.3.1
136+ uses : pypa/cibuildwheel@v2.11.4
125137 env :
126138 CIBW_BUILD : ${{ matrix.py }}-*
127139 CIBW_ARCHS : ${{ matrix.arch }}
@@ -139,21 +151,30 @@ jobs:
139151 strategy :
140152 fail-fast : false
141153 matrix :
142- py : [cp37, cp38, cp39, cp310]
154+ py : [cp37, cp38, cp39, cp310, cp311 ]
143155 arch : ["AMD64", "x86"]
156+
144157 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
145165
146- # We can't build win32 (x86) with cp310 because numpy doesn't have a win32 wheel
147166 - py : cp310
148- arch : " x86"
167+ arch : x86
149168
169+ - py : cp311
170+ arch : x86
150171
151172 steps :
152173 - name : Checkout ${{ env.package-name }}
153174 uses : actions/checkout@v2
154175
155176 - name : Build wheels with cibuildwheel to wheelhouse/*.whl
156- uses : pypa/cibuildwheel@v2.3.1
177+ uses : pypa/cibuildwheel@v2.11.4
157178 env :
158179 CIBW_BUILD : ${{ matrix.py }}-*
159180 CIBW_ARCHS : ${{ matrix.arch }}
@@ -171,7 +192,7 @@ jobs:
171192 strategy :
172193 fail-fast : false
173194 matrix :
174- py : ["3.7", "3.8", "3.9", "3.10"]
195+ py : ["3.7", "3.8", "3.9", "3.10", "3.11" ]
175196
176197 steps :
177198 - name : Checkout ${{ env.package-name }}
@@ -184,9 +205,9 @@ jobs:
184205
185206 - name : Build source distribution
186207 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"
190211
191212 - name : Twine check ${{ env.package-name }}
192213 run : |
@@ -223,7 +244,7 @@ jobs:
223244 needs : [build_linux_wheels, build_macos_wheels, build_windows_wheels, build_sdist]
224245
225246 # 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'
227248
228249 steps :
229250 - name : Checkout ${{ env.package-name }}
0 commit comments