Skip to content

Commit 41abc0a

Browse files
committed
Move cibuildwheel settings to pyproject.toml, add optimized CFLAGS thanks to @marcelm, see marcelm/dnaio#152
1 parent e199acb commit 41abc0a

2 files changed

Lines changed: 12 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,8 @@ jobs:
128128
- name: Build wheels
129129
run: cibuildwheel --output-dir dist
130130
env:
131-
CIBW_SKIP: "*-win32 *-manylinux_i686 pp3*" # Skip 32 bit, pypy
132131
CIBW_ARCHS_LINUX: ${{ matrix.cibw_archs_linux }}
133132
# Fully test the build wheels again.
134-
CIBW_TEST_REQUIRES: "pytest"
135-
# Simple test that requires the project to be build correctly
136-
CIBW_TEST_COMMAND: >-
137-
pytest {project}/tests/
138133
- name: Build sdist
139134
if: ${{runner.os == 'Linux' && matrix.cibw_archs_linux == 'x86_64'}}
140135
run: |

pyproject.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,15 @@ sequali = [
6363

6464
[tool.setuptools_scm]
6565
write_to = "src/sequali/_version.py"
66+
67+
[tool.cibuildwheel.linux.environment]
68+
CFLAGS = "-O3 -DNDEBUG"
69+
70+
[tool.cibuildwheel.macos.environment]
71+
CFLAGS = "-O3 -DNDEBUG"
72+
73+
[tool.cibuildwheel]
74+
test-requires = "pytest"
75+
test-command = "pytest {project}/tests/"
76+
skip = "*-win32 *-manylinux_i686 pp3*" # Skip 32 bit, pypy
77+
build-verbosity = 1

0 commit comments

Comments
 (0)