Skip to content

Commit d7dd039

Browse files
committed
upgrade cibuildwheel
1 parent 51d3ccb commit d7dd039

File tree

2 files changed

+11
-18
lines changed

2 files changed

+11
-18
lines changed

.github/workflows/releasebuild.yml

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,7 @@ jobs:
6464
env:
6565
CIBW_ARCHS: ${{matrix.arch}}
6666
CIBW_TEST_SKIP: "*-win32"
67-
#CIBW_TEST_REQUIRES: pytest hypothesis pandas
68-
CIBW_TEST_REQUIRES: pytest hypothesis
69-
CIBW_TEST_COMMAND: pytest {package}/tests
7067
CIBW_BUILD_VERBOSITY: 3
71-
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.9"
7268

7369
steps:
7470
- uses: actions/download-artifact@v4
@@ -82,7 +78,7 @@ jobs:
8278
- uses: actions/setup-python@v5
8379

8480
- name: Build wheels
85-
uses: pypa/[email protected].2
81+
uses: pypa/[email protected].3
8682
with:
8783
package-dir: rapidfuzz.tar.gz
8884
output-dir: wheelhouse
@@ -104,11 +100,7 @@ jobs:
104100
env:
105101
CIBW_ARCHS: native
106102
CIBW_TEST_SKIP: "pp*-macosx_*"
107-
#CIBW_TEST_REQUIRES: pytest hypothesis pandas
108-
CIBW_TEST_REQUIRES: pytest hypothesis
109-
CIBW_TEST_COMMAND: pytest {package}/tests
110103
CIBW_BUILD_VERBOSITY: 3
111-
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.9"
112104

113105
steps:
114106
- uses: actions/download-artifact@v4
@@ -122,7 +114,7 @@ jobs:
122114
run: cp dist/*.tar.gz rapidfuzz.tar.gz
123115

124116
- name: Build wheels
125-
uses: pypa/[email protected].2
117+
uses: pypa/[email protected].3
126118
with:
127119
package-dir: rapidfuzz.tar.gz
128120
output-dir: wheelhouse
@@ -160,10 +152,6 @@ jobs:
160152
CIBW_ARCHS_LINUX: ${{matrix.arch}}
161153
CIBW_BUILD: ${{matrix.python_tag}}
162154
CIBW_TEST_SKIP: "{*_{aarch64,ppc64le,s390x},*musllinux_*}"
163-
#CIBW_TEST_REQUIRES: pytest hypothesis pandas
164-
CIBW_TEST_REQUIRES: pytest hypothesis
165-
CIBW_TEST_COMMAND: pytest {package}/tests
166-
# CIBW_TEST_COMMAND: "{package}/tools/seg_wrapper.sh pytest {package}/tests"
167155
CIBW_BUILD_VERBOSITY: 3
168156

169157
steps:
@@ -186,7 +174,7 @@ jobs:
186174
image: tonistiigi/binfmt:qemu-v8.1.5
187175

188176
- name: Build wheel
189-
uses: pypa/[email protected].2
177+
uses: pypa/[email protected].3
190178
with:
191179
package-dir: rapidfuzz.tar.gz
192180
output-dir: wheelhouse
@@ -202,8 +190,6 @@ jobs:
202190
needs: [build_sdist]
203191
runs-on: ubuntu-latest
204192
env:
205-
CIBW_TEST_REQUIRES: pytest hypothesis
206-
CIBW_TEST_COMMAND: pytest {package}/tests
207193
CIBW_PLATFORM: pyodide
208194
CIBW_BUILD_VERBOSITY: 3
209195

@@ -221,7 +207,7 @@ jobs:
221207
run: cp dist/*.tar.gz rapidfuzz.tar.gz
222208

223209
- name: Build wheel
224-
uses: pypa/[email protected].2
210+
uses: pypa/[email protected].3
225211
with:
226212
package-dir: rapidfuzz.tar.gz
227213
output-dir: wheelhouse

pyproject.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,3 +179,10 @@ isort.combine-as-imports = true
179179
"tools/test_process_typing.py" = ["ARG001"]
180180
"_custom_build/backend.py" = ["T20"]
181181
"setup.py" = ["T20"]
182+
183+
[tool.cibuildwheel]
184+
enable = ["cpython-freethreading", "pypy"]
185+
# in theory some tests require numpy / pandas as well. However those don't provider
186+
# wheels for all target platforms
187+
test-requires = ["pytest", "hypothesis"]
188+
test-command = "pytest {package}/tests"

0 commit comments

Comments
 (0)