Skip to content

[docs] Mention that project.name is required in pyproject.toml#2770

Merged
messense merged 1 commit intoPyO3:mainfrom
ddelange:patch-2
Oct 14, 2025
Merged

[docs] Mention that project.name is required in pyproject.toml#2770
messense merged 1 commit intoPyO3:mainfrom
ddelange:patch-2

Conversation

@ddelange
Copy link
Copy Markdown
Contributor

@ddelange ddelange commented Oct 13, 2025

I didn't understand why maturin fails if I try to make name dynamic too.

docs for one of the issues I mentioned in #2769

Also License will be missing from the wheel even if [project] is not defined at all, which is also undocumented, see oconnor663/blake3-py#69.

this one looks like an actual bug in maturin to me, but I might be mistaken. edit: #2773

Comment thread guide/src/metadata.md
* `description` - From the contents of the README file specified in Cargo.toml's `package.readme`
* `description_content_type` - Set based on the README file extension (e.g. `text/markdown` for `.md` files)
* `keywords` - From `package.keywords` in Cargo.toml, joined with commas
* `home_page` - From `package.homepage` in Cargo.toml
Copy link
Copy Markdown
Contributor Author

@ddelange ddelange Oct 13, 2025

Choose a reason for hiding this comment

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

this was confusing to me, so I added another sentence below to clarify the relationship is between Cargo.toml and pyproject.toml, not the MEDADATA file fields mentioned here.

To use package.homepage from Cargo.toml, add urls to project.dynamic and so forth:

@messense messense merged commit e36cbb4 into PyO3:main Oct 14, 2025
6 checks passed
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