An open API service indexing awesome lists of open source software.

https://github.com/spyoungtech/pyo3-extension-template

A template for starting rust PyO3 extension module projects that can be used with cargo-generate
https://github.com/spyoungtech/pyo3-extension-template

cargo-generate pyo3 pyo3-examples python

Last synced: about 1 month ago
JSON representation

A template for starting rust PyO3 extension module projects that can be used with cargo-generate

Awesome Lists containing this project

README

          

# PyO3 Extension Template

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`, or `delvewheel`)
- Tests your rust code using `cargo test` and tests your generated extension module using `tox`
- Uploads wheels and sdist to GitHub release and PyPI on tagged builds

To publish to PyPI, be sure to setup your [trusted publisher](https://docs.pypi.org/trusted-publishers/) configuration
first.