Skip to content
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

Update metadata in Cargo.toml #250

Merged
merged 2 commits into from
Jan 10, 2022
Merged

Conversation

kngwyu
Copy link
Member

@kngwyu kngwyu commented Jan 9, 2022

Since some contributors are not involved in PyO3 team (e.g., the original author @termoshtt), I employed dual authorship (rust-numpy and PyO3 developers).
Also, I updated the document link and added categories.
Let me know if you have any idea 😃

Copy link
Member

@adamreichold adamreichold left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know it is somewhat unrelated to this change, but since we are here: Is there a reason we have to forward ndarray's rayon feature, but not any other of its features, i.e.

[features]
default = []
rayon = ["ndarray/rayon"]

? It does not seem to be used within our code base at all so I guess we could drop it and user code would have to enable any ndarray features in the same way, by adding an explicit dependency. (The other alternative would be to forward all of ndarray's features for consistency, but that feels like unnecessarily tight coupling.)

Cargo.toml Outdated
"Toshiki Teramura <toshiki.teramura@gmail.com>",
"Yuji Kanagawa <yuji.kngw.80s.revive@gmail.com>",
"The rust-numpy developers",
"PyO3 Project and Contributors <https://github.com/PyO3>"
]
description = "Rust binding of NumPy C-API"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is customarily called "Rust bindings" (plural)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@kngwyu
Copy link
Member Author

kngwyu commented Jan 9, 2022

Agreed, it can be removed

@kngwyu kngwyu force-pushed the update-metadata-in-cargo-toml branch from 427a40d to c72a60c Compare January 9, 2022 06:39
@adamreichold
Copy link
Member

Agreed, it can be removed

I think we can remove the whole features section in that case?

@adamreichold
Copy link
Member

I will add an example for #70 which will show case how to enable ndarray features...

@kngwyu kngwyu force-pushed the update-metadata-in-cargo-toml branch from c72a60c to 08bb302 Compare January 9, 2022 06:57
@@ -24,9 +25,5 @@ pyo3 = { version = "0.15", default-features = false }
[dev-dependencies]
pyo3 = { version = "0.15", features = ["auto-initialize"] }

[features]
default = []
rayon = ["ndarray/rayon"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be worth noting this removal in the CHANGELOG. (Alongside a suggestion to just use ndarrays feature directly).

@kngwyu kngwyu force-pushed the update-metadata-in-cargo-toml branch from 08bb302 to 7e12778 Compare January 9, 2022 08:20
@adamreichold adamreichold force-pushed the update-metadata-in-cargo-toml branch from 7e12778 to 406b24e Compare January 10, 2022 09:39
@adamreichold
Copy link
Member

@kngwyu I took the liberty of rebasing this and resolving the changelog conflict. If you alright with that, I'll merge this soon?

@kngwyu
Copy link
Member Author

kngwyu commented Jan 10, 2022

Alright 👍

@adamreichold adamreichold merged commit e09d48f into main Jan 10, 2022
@adamreichold adamreichold deleted the update-metadata-in-cargo-toml branch January 10, 2022 11:21
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.

3 participants