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

Remove support for specifying python package metadata in Cargo.toml #1200

Merged
merged 1 commit into from
Oct 17, 2022

Conversation

messense
Copy link
Member

Closes #1047

@netlify
Copy link

netlify bot commented Oct 17, 2022

Deploy Preview for maturin-guide ready!

Name Link
🔨 Latest commit 289c007
🔍 Latest deploy log https://app.netlify.com/sites/maturin-guide/deploys/634cd283c0bf21000871db85
😎 Deploy Preview https://deploy-preview-1200--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 changed the title Remove support for specifying python metadata in Cargo.toml Remove support for specifying python package metadata in Cargo.toml Oct 17, 2022
#[serde(rename_all = "kebab-case")]
#[serde(deny_unknown_fields)]
Copy link
Member Author

Choose a reason for hiding this comment

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

Had to remove this to deserialize unknown fields to other and print a warning for it.

@@ -144,34 +104,22 @@ struct CargoTomlMetadata {
/// Those fields are the part of the
/// [python core metadata](https://packaging.python.org/specifications/core-metadata/)
/// that doesn't have an equivalent in cargo's `[package]` table
#[derive(Serialize, Deserialize, Debug, Clone, Eq, PartialEq, Default)]
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 don't think we need Eq/PartialEq in maturin, and HashMap<String, toml_edit::easy::Value> prevents deriving them.

@messense messense requested a review from konstin October 17, 2022 04:17
@messense messense added the breaking-change Breaking change label Oct 17, 2022
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.

👍

@messense messense merged commit 54affe4 into PyO3:main Oct 17, 2022
@messense messense deleted the remove-python-metadata-in-cargo-toml branch October 17, 2022 05:43
messense added a commit that referenced this pull request Oct 17, 2022
messense added a commit that referenced this pull request Oct 17, 2022
bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this pull request Nov 20, 2022
https://build.opensuse.org/request/show/1036879
by user mia + dimstar_suse
- Update to v0.14.0:
* Breaking Change: Remove support for specifying python package
  metadata in `Cargo.toml`
  Python package metadata should be specified in the `project`
  section of `pyproject.toml` instead as PEP 621 specifies.
  gh#PyO3/maturin#1200
* Initial support for shipping bin targets as wasm32-wasi binaries
  that are run through wasmtime
  Note that wasmtime currently only support the five most popular
  platforms and that wasi binaries have restrictions when
  interacting with the host.
  Usage is by setting `--target wasm32-wasi`.
  gh#PyO3/maturin#1107
* Add support for python first `src` project layout
  gh#PyO3/maturin#1185
* Add `--src` option to generate src layout for mixed Python/Rust
  projects
  gh#PyO3/maturin#1189
* Add Python metadata support for `license-file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change Breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove support for specifying python metadata in Cargo.toml
2 participants