Skip to content

Merge metadata with project table in pyproject.toml - #555

Merged
messense merged 5 commits into
PyO3:mainfrom
messense:pep621
Jun 3, 2021
Merged

Merge metadata with project table in pyproject.toml#555
messense merged 5 commits into
PyO3:mainfrom
messense:pep621

Conversation

@messense

Copy link
Copy Markdown
Member

Closes #465

@messense
messense requested a review from konstin May 29, 2021 13:37
Comment thread src/metadata.rs Outdated
pyproject_toml: &PyProjectToml,
manifest_path: impl AsRef<Path>,
) -> Result<()> {
// FIXME: where to find `pyproject.toml`? relative to manifest_path? relative to working directory?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I'm opening this draft PR for discussion.

@konstin what's your thought about this?

Comment thread Cargo.toml
@messense
messense force-pushed the pep621 branch 3 times, most recently from 23bd20a to d0de556 Compare May 30, 2021 10:50
@messense
messense marked this pull request as ready for review May 30, 2021 10:52
@messense
messense force-pushed the pep621 branch 5 times, most recently from 291583f to ceebb53 Compare May 30, 2021 14:23

@konstin konstin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you very much! The only major thing is updating the "Python metadata" section in the readme (and porting all the test crates' metadata, but that we can do later)

Comment thread Cargo.toml
Comment thread Changelog.md Outdated
Comment thread src/metadata.rs Outdated
Comment thread src/metadata.rs Outdated
Comment thread src/metadata.rs Outdated
Comment thread src/metadata.rs
.keywords
.clone()
.map(|keywords| keywords.join(" ")),
.map(|keywords| keywords.join(",")),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Huh what did I miss there?

Comment thread src/metadata.rs
Comment thread src/pyproject_toml.rs
Comment thread test-crates/pyo3-pure/Cargo.toml
messense and others added 3 commits June 1, 2021 20:58
Co-authored-by: konstin <konstin@mailbox.org>
https://packaging.python.org/specifications/core-metadata/#keywords

The specification previously showed keywords separated by spaces, but
distutils and setuptools implemented it with commas. These tools have
been very widely used for many years, so it was easier to update the
specification to match the de facto standard.
…ers`

https://packaging.python.org/specifications/core-metadata/#classifier-multiple-use

I've downloaded `Flask` and `requests` from PyPI, they all show
`Classifier` in wheel metadata

@konstin konstin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks again!

@messense
messense merged commit 365ec55 into PyO3:main Jun 3, 2021
@messense
messense deleted the pep621 branch June 3, 2021 23:39
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.

PEP 621: Read metadata from project table in pyproject.toml

3 participants