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

Merge metadata with project table in pyproject.toml #555

Merged
merged 5 commits into from
Jun 3, 2021

Conversation

messense
Copy link
Member

Closes #465

@messense messense requested a review from konstin May 29, 2021 13:37
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
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?

Cargo.toml Show resolved Hide resolved
@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
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.

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)

Cargo.toml Show resolved Hide resolved
Changelog.md Outdated Show resolved Hide resolved
src/metadata.rs Outdated Show resolved Hide resolved
src/metadata.rs Outdated Show resolved Hide resolved
src/metadata.rs Outdated Show resolved Hide resolved
@@ -136,7 +306,7 @@ impl Metadata21 {
.package
.keywords
.clone()
.map(|keywords| keywords.join(" ")),
.map(|keywords| keywords.join(",")),
Copy link
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?

src/metadata.rs Show resolved Hide resolved
src/pyproject_toml.rs Show resolved Hide resolved
test-crates/pyo3-pure/Cargo.toml Show resolved Hide resolved
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
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.

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