Skip to content

Commit 99bfbbf

Browse files
committed
cibuildwheel First attempt (FORD requires cleaning)
1 parent 03ce303 commit 99bfbbf

3 files changed

Lines changed: 197 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build_wheels:
7+
name: Build wheels on ${{ matrix.os }}
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
matrix:
11+
# macos-13 is an intel runner, macos-14 is apple silicon
12+
#os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest, windows-11-arm, macos-13, macos-14]
13+
os: [ubuntu-latest]
14+
15+
steps:
16+
- uses: actions/checkout@v5
17+
18+
- name: Build wheels
19+
uses: pypa/cibuildwheel@v3.1.4
20+
# env:
21+
# CIBW_SOME_OPTION: value
22+
# ...
23+
with:
24+
package-dir: .
25+
output-dir: wheelhouse
26+
config-file: "{package}/pyproject.toml"
27+
28+
- uses: actions/upload-artifact@v4
29+
with:
30+
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
31+
path: ./wheelhouse/*.whl

pyproject.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ dev = [
7272
"tomli-w>=1.2.0",
7373
"tomli>=2.2.1",
7474
"typer>=0.15.2",
75+
"cibuildwheel>=2.0",
7576
]
7677
docs = [
7778
# Key dependencies
@@ -301,3 +302,11 @@ unauthorized_licenses = [
301302
"gpl v1",
302303
"gplv1",
303304
]
305+
306+
[tool.cibuildwheel]
307+
before-all = "uname -a"
308+
build = "cp3?-*" # CPython 3.x versions
309+
#skip = "pp*" # skip building PyPy wheels
310+
#test-command = "uv run --no-sync pytest tests/"
311+
test-requires = ["pytest"]
312+
test-command = "pytest {project}/tests"

uv.lock

Lines changed: 157 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)