Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .copier-answers.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changes here will be overwritten by Copier
_commit: 84508d6
_commit: d814faa
_src_path: https://github.com/python-project-templates/base.git
add_docs: true
add_extension: cpp
Expand Down
18 changes: 15 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, ubuntu-24.04-arm, macos-latest, windows-latest]
python:
- version: "3.11"
cibuildwheel: "cp311"
Expand Down Expand Up @@ -93,17 +93,29 @@ jobs:
- name: Install build dependencies
run: pip install cibuildwheel

- name: Build distributions (Linux)
- name: Build distributions (Linux x86_64)
run: |
rm -rf dist
make dist-py-sdist
make dist-py-wheel
make dist-check
env:
CIBW_BUILD: "${{ matrix.python.cibuildwheel }}-manylinux*"
CIBW_ARCHS_LINUX: native
CIBW_BUILD_VERBOSITY: 3
if: matrix.os == 'ubuntu-latest'

- name: Build distributions (Linux ARM64)
run: |
rm -rf dist
make dist-py-wheel
make dist-check
env:
CIBW_BUILD: "${{ matrix.python.cibuildwheel }}-manylinux*"
CIBW_ARCHS_LINUX: native
CIBW_BUILD_VERBOSITY: 3
if: matrix.os == 'ubuntu-24.04-arm'

- name: Build distributions (macOS)
run: |
rm -rf dist
Expand All @@ -125,7 +137,7 @@ jobs:
uses: actions-ext/python/test-wheel@6e1b91a408ea89f49bc8aff8724f83826f7b5446
with:
module: python_template_cpp
if: matrix.os == 'ubuntu-latest'
if: runner.os == 'Linux'

- name: Test source distribution
uses: actions-ext/python/test-sdist@6e1b91a408ea89f49bc8aff8724f83826f7b5446
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,13 @@ replace = 'version = "{new_version}"'

[tool.cibuildwheel]
build = "cp311-* cp312-* cp313-*"
test-command = "echo 'TODO'"
test-command = "pytest -vvv {project}/python_template_cpp/tests"
test-extras = "develop"

[tool.cibuildwheel.linux]
manylinux-aarch64-image = "manylinux_2_28"
manylinux-x86_64-image = "manylinux_2_28"
skip = "*i686 musllinux*"
skip = "*i686* *musllinux*"

[tool.cibuildwheel.macos]
environment = {MACOSX_DEPLOYMENT_TARGET="11.0"}
Expand Down
Loading