Skip to content

Add a Cython project template with native wheel checks - #190

Merged
timkpaine merged 6 commits into
mainfrom
tkp/add-cython-template
Sep 7, 2026
Merged

Add a Cython project template with native wheel checks#190
timkpaine merged 6 commits into
mainfrom
tkp/add-cython-template

Conversation

@timkpaine

@timkpaine timkpaine commented Sep 7, 2026

Copy link
Copy Markdown
Member

Add Python / Cython as a first-class Copier choice at python/cython, combining the Python project layout with native-wheel CI and hatch-cython.

  • Compile explicit .py and .pyx example modules without C++ scaffolding or pybind11.
  • Build Linux x86_64/ARM64, macOS ARM64, and Windows x86_64 wheels from clean sdists using the existing shared setup actions.
  • Run installed-wheel tests through cibuildwheel and verify compiled imports in fresh environments, including wheels rebuilt from sdists.
  • Add the standalone example configuration, generator/test targets, base CI coverage, and a local development guide.

Generated instance: https://github.com/python-project-templates/python-template-cython
Downstream migration: pmorissette/bt#549

Local macOS ARM64 checks pass: make gen-cython and make test-cython, six tests, distribution-content checks, 100% measured Python coverage, direct-wheel and sdist-rebuilt-wheel compiled imports. Actionlint passes for generated workflows. Cross-platform wheel builds run in the generated instance's CI.

Restore the shared README badges, Overview heading, and Copier note; the README template is identical to the pure, C++, and Rust variants. Audit follow-up restores common Makefile helpers/help output and optional wiki linting, and narrows generated-source exclusions so authored C/C++ helpers are not dropped from sdists. Standalone checks and optional wiki linting pass.

Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
@timkpaine
timkpaine merged commit e712b7e into main Sep 7, 2026
21 checks passed
@timkpaine
timkpaine deleted the tkp/add-cython-template branch September 7, 2026 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant