Add complete PyPI project metadata - #556
Open
Yuge Zhang (ultmaster) wants to merge 1 commit into
Open
Conversation
Yuge Zhang (ultmaster)
force-pushed
the
fix/pypi-project-metadata
branch
2 times, most recently
from
August 22, 2026 02:38
63b0a00 to
4d171d6
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
This PR enhances the project’s PyPI packaging metadata to provide a richer, more complete published distribution profile, and adds regression tests to validate the installed distribution’s core metadata.
Changes:
- Publish
README.mdas the PyPI long description viareadme = "README.md". - Add richer PEP 621 project metadata (license, author, keywords, classifiers, and project URLs).
- Add regression coverage asserting key installed distribution metadata fields.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
pyproject.toml |
Adds PEP 621 project metadata fields (readme/license/authors/keywords/classifiers/URLs) to improve PyPI metadata completeness. |
tests/test_package.py |
Adds installed-distribution metadata assertions to prevent regressions in published package metadata. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+20
to
+23
| assert package_metadata["Author"] == "Microsoft Corporation" | ||
| assert package_metadata["Description-Content-Type"] == "text/markdown" | ||
| assert package_metadata["License-Expression"] == "MIT" | ||
| assert package_metadata.get_payload().startswith('<p align="center">') |
| assert package_metadata["Description-Content-Type"] == "text/markdown" | ||
| assert package_metadata["License-Expression"] == "MIT" | ||
| assert package_metadata.get_payload().startswith('<p align="center">') | ||
| assert set(package_metadata.get_all("Project-URL") or []) == { |
Comment on lines
+5
to
+7
| readme = "README.md" | ||
| license = "MIT" | ||
| authors = [ |
Yuge Zhang (ultmaster)
force-pushed
the
fix/pypi-project-metadata
branch
from
August 22, 2026 02:40
4d171d6 to
e41a2e9
Compare
Yuge Zhang (ultmaster)
force-pushed
the
fix/pypi-project-metadata
branch
from
August 22, 2026 02:43
e41a2e9 to
3ea24f5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Verification