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

Move maturin metadata from Cargo.toml to pyproject.toml #1493

Merged
merged 3 commits into from
Mar 25, 2023

Conversation

messense
Copy link
Member

Implements #1489 (comment)

@netlify
Copy link

netlify bot commented Feb 19, 2023

Deploy Preview for maturin-guide ready!

Name Link
🔨 Latest commit c1f3991
🔍 Latest deploy log https://app.netlify.com/sites/maturin-guide/deploys/641ee98e85ae840008fe7bb3
😎 Deploy Preview https://deploy-preview-1493--maturin-guide.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@messense messense added this to the 1.0.0 milestone Feb 19, 2023
@messense messense force-pushed the package-metadata-maturin branch from 6977ea4 to 2b5f3a3 Compare February 19, 2023 02:35
@@ -86,6 +86,8 @@ impl GlobPattern {
#[serde(rename_all = "kebab-case")]
pub struct ToolMaturin {
// maturin specific options
// extension module name, accepts setuptools style import name like `foo.bar`
name: Option<String>,
Copy link
Member Author

Choose a reason for hiding this comment

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

I feel that name isn't a good name for this, how about extension-name / extension-module?

@konstin

Copy link
Member

Choose a reason for hiding this comment

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

yeah, maybe rust-module-name or native-module-name? i think extension a bit misleading because in maturin's case it's not an extension, it's the main thing (and the metaphor of extending cpython by adding new built-in modules is lost on most users)

Copy link
Member Author

Choose a reason for hiding this comment

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

I think module-name is a good alternative.

@messense messense force-pushed the package-metadata-maturin branch 2 times, most recently from 7681fea to 1782939 Compare February 19, 2023 02:43
@konstin
Copy link
Member

konstin commented Mar 25, 2023

What does this pull request need to be ready to be merged?

Use `tool.maturin.data` of `pyproject.toml` instead.
@messense messense force-pushed the package-metadata-maturin branch from 1782939 to 1332779 Compare March 25, 2023 12:07
@messense messense marked this pull request as ready for review March 25, 2023 12:07
@messense messense force-pushed the package-metadata-maturin branch from 1332779 to 0b5311e Compare March 25, 2023 12:08
@messense messense requested a review from konstin March 25, 2023 12:09
Copy link
Member

@konstin konstin left a comment

Choose a reason for hiding this comment

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

Neat!

This is the last breaking change we need for 1.0, right?

@messense
Copy link
Member Author

Yeah, I'd also like to release a new 0.14 version to deprecate package.metadata.maturin first.

@konstin
Copy link
Member

konstin commented Mar 25, 2023

sounds good! i also thought about publishing a v0.15 first so people can test all the breaking changes and then publish a 1.0 two weeks or so later

@messense
Copy link
Member Author

bors r=konstin

@bors
Copy link
Contributor

bors bot commented Mar 25, 2023

Build succeeded:

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.

2 participants