-
-
Notifications
You must be signed in to change notification settings - Fork 275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No way to give Rust and Python project a different name. #1520
Comments
Have you tried [package.metadata.maturin]
name = "xdot_rs" ? The module name has to be aligned with the dylib name which defaults to |
This kinda works, but the python module included in the .whl is named |
The configuration is very likely going to be changed in #1493 (comment). |
It would be helpful if you can provide a git repo for repro. |
sure, can do. |
Here you go: https://github.com/flying-sheep/maturin-names-reproducer I’m not sure if I understand the purpose of all the names completely, but the point is that the generated python package has the rust crate name still (and is broken as it does |
Bug Description
Apologies if there is a way, I searched for quite a while and didn’t find it.
I want to create a crate that is also deployed to PyPI.
On crates.io, it has the name
xdot
(already published), on PyPI it’s supposed to have the namexdot-rs
(and be importable asimport xdot_rs
)This doesn’t seem to be possible as
[tool.maturin]
doesn’t seem to have an option for this, and when just using the intended names, maturin complains:This advice isn’t actionable, since I can neither use
xdot
as Python package name (it already exists) nor am I able (or want to) rename the Rust crate toxdot-rs
.Your maturin version (
maturin --version
)0.14.15
Your Python version (
python -V
)3.10.9
Your pip version (
pip -V
)23.0.1
What bindings you're using
pyo3
Does
cargo build
work?Steps to Reproduce
Cargo.toml
pyproject.toml
src/lib.rs
The text was updated successfully, but these errors were encountered: