setuptools-rust
setuptools-rust copied to clipboard
Setuptools plugin for Rust support
The source distributions for 1.5.0 and 1.5.1 no longer contain docs, examples, and tests directories. The tests and examples are useful for downstream packagers. For example I use them in...
Currently one specifies `rust_extensions` in `setup.py`, imperatively (e.g. https://github.com/pyca/cryptography/blob/main/setup.py#L43-L56). Nowadays, setuptools lets one specify many options declaratively in `setup.cfg` (e.g. https://github.com/pyca/cryptography/blob/main/setup.cfg). It'd be great if `rust_extensions` could also be specified...
https://github.com/mozilla/uniffi-rs Python bindings can be generated via: ` uniffi-bindgen generate [...path to the UDL file...] --config uniffi.toml --language python --out-dir [...output path...]` sample toml config: https://github.com/mozilla/uniffi-rs/blob/e7ff0dafda31d413ba94065c2f7039166ae03e94/examples/custom-types/uniffi.toml#L26
Just some tidy-ups I'd like to do whenever we get around to a next breaking release: - Change `Optional[Sequence[str]]` arguments to `RustExtension` to just be `Sequence[str] = ()`. - Remove...
I was thinking the other day it might be nice to check if any processes are using the installed extension before attempting to copy across. I think on Windows we'll...
In #186 I added mypy configuration to CI. It's mostly complete, but there's more `# type: ignore` markers than I would like. If anybody's interested in doing some useful work...
Use the "packaging" package instead of semantic_version package to parse Rust version and spec. Packaging is used by setuptools to parse version strings and specs. This also solves a deprecation...
Hi! I'm [moving a Python package](https://github.com/dib-lab/sourmash/pull/1564) from using milksnake to setuptools-rust, since it is more active and it supports `universal2` wheels on macOS. It mostly worked, but I hit a...
One nice thing about Cython is that you can have a single `.pyx` file, two lines in `setup.py` and one line in `requirements.txt`, and you're good. With PyO3, you need...
In `cryptography` builds we have been getting this deprecation warning for a while: ``` setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning: Installing 'cryptography.hazmat.bindings._rust' as data is deprecated, please list it in `packages`. ############################ # Package...