Template for starting PyO3 module projects with cargo-generate
Includes basic project setup and GitHub Actions workflow that:
- Builds wheels for Python 3.8-3.12 and PyPy for multiple platforms and architectures
- Repairs wheels for proper packaging of linked dependencies (e.g., using
delocate
,auditwheel
, ordelvewheel
) - Tests your rust code using
cargo test
and tests your generated extension module usingtox
- Uploads wheels and sdist to GitHub release and PyPI on tagged builds
To publish to PyPI, be sure to setup your trusted publisher configuration first.