Skip to content

Commit 04dd2aa

Browse files
committed
Configure cibuildwheel
1 parent 38529a0 commit 04dd2aa

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

README.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ For development
3030
. env/bin/activate
3131
pip install -e .[test]
3232
33+
Building Wheels
34+
~~~~~~~~~~~~~~~
35+
36+
.. code-block:: sh
37+
38+
pip install cibuildwheel
39+
cibuildwheel --platform linux --output-dir wheelhouse
40+
3341
Run tests
3442
=========
3543

pyproject.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,14 @@ target-version = ["py38", "py39", "py310", "py311"]
6969
[tool.mypy]
7070
strict = true
7171
warn_unused_configs = true
72+
73+
[tool.cibuildwheel]
74+
archs = ["native"]
75+
test-command = "pytest --import-mode=importlib -p no:cacheprovider {project}/tests"
76+
test-requires = ["pytest", "pytest-cov"]
77+
78+
[tool.cibuildwheel.linux]
79+
repair-wheel-command = [
80+
"auditwheel repair -w {dest_dir} {wheel}",
81+
"if [[ {wheel} =~ -abi3-.*\\.whl ]]; then pipx run abi3audit --strict --report {wheel}; fi",
82+
]

0 commit comments

Comments
 (0)