From f02b286b160d75342aa50c15b6332a9991aa1845 Mon Sep 17 00:00:00 2001 From: ddelange <14880945+ddelange@users.noreply.github.com> Date: Sun, 12 Oct 2025 00:05:41 +0200 Subject: [PATCH] Add full pyproject.toml example to dynamic metadata docs --- guide/src/metadata.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/guide/src/metadata.md b/guide/src/metadata.md index cba25b745..0ed7fbf19 100644 --- a/guide/src/metadata.md +++ b/guide/src/metadata.md @@ -76,12 +76,20 @@ When the `[project]` section is not present, maturin will populate metadata from When the `[project]` section is present, maturin will merge metadata from `Cargo.toml` and `pyproject.toml`, `pyproject.toml` takes precedence over `Cargo.toml`. Per specification, maturin is not allowed to populate fields that are not present in `project.dynamic` list when the `[project]` section is present. -For example, to use the Rust crate version as the Python package version, you need to add `version` to the `project.dynamic` list: +For example, to use the Rust crate version as the Python package version, you need to add `version` to the `project.dynamic` list and so forth: ```toml [project] name = "my-awesome-project" -dynamic = ["version"] +dynamic = [ + "version", + "description", + "readme", + "urls", + "authors", + "license", + "keywords", +] ``` ## Add Python dependencies