Skip to content

Commit d0520ba

Browse files
committed
pyproject.toml: Move settings of CIBW_TEST_COMMAND here
1 parent 4439f12 commit d0520ba

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.github/workflows/buildwheel.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ jobs:
5050
PYTHON_FLINT_MINGW64=true
5151
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: >-
5252
bin\cibw_repair_wheel_command_windows.bat {dest_dir} {wheel}
53-
CIBW_TEST_COMMAND: python -c "import flint; print(str(flint.fmpz(2)))"
5453
5554
- uses: actions/upload-artifact@v4
5655
with:

bin/cibw.bat

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,5 @@ set CIBW_BEFORE_ALL_WINDOWS=C:\msys64\usr\bin\bash bin/cibw_before_all_windows.s
2727
set CIBW_BEFORE_BUILD_WINDOWS=C:\msys64\usr\bin\bash bin/cibw_before_build_windows.sh
2828
set CIBW_ENVIRONMENT=PYTHON_FLINT_MINGW64=true
2929
set CIBW_REPAIR_WHEEL_COMMAND_WINDOWS=bin\cibw_repair_wheel_command_windows.bat {dest_dir} {wheel}
30-
set CIBW_TEST_COMMAND=python -c "import flint; print(str(flint.fmpz(2)))"
3130

3231
cibuildwheel --platform windows

bin/cibw.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ export CIBW_BEFORE_BUILD_WINDOWS='C:\\msys64\\usr\\bin\\bash bin/cibw_before_bui
2828

2929
export CIBW_REPAIR_WHEEL_COMMAND_WINDOWS='bin\cibw_repair_wheel_command_windows.bat {dest_dir} {wheel}'
3030

31-
# export CIBW_TEST_COMMAND="python -c 'import flint; print(str(flint.fmpz(2)))'"
32-
export CIBW_TEST_COMMAND="python -m flint.test"
31+
export CIBW_TEST_COMMAND="python -m flint.test" # override setting in pyproject.toml
3332

3433
# cibuildwheel --platform linux
3534
# cibuildwheel --platform windows

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@ classifiers = [
2020
[project.readme]
2121
file = "README.md"
2222
content-type = "text/markdown"
23+
24+
[tool.cibuildwheel]
25+
test-command = "python -c 'import flint; print(str(flint.fmpz(2)))'"

0 commit comments

Comments
 (0)