bug: fix PyPI packaging metadata validation in CI/CD#17
Merged
Conversation
cmbengue-ec-intl
requested changes
Apr 17, 2026
Member
cmbengue-ec-intl
left a comment
There was a problem hiding this comment.
Good work on this. A few changes are needed.
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.
🥇 Generic Pull Request 🥇
Elizabeth Consulting International Inc
Purpose & Objective
This PR fixes the PyPI/TestPyPI packaging validation issue that previously caused production deployment to fail with:
InvalidDistribution: Metadata is missing required fields: Name, VersionThe goal of this change is to harden the CI/CD packaging flow so release artifacts are validated before upload, helping prevent the same production deployment failure from happening again on the next release.
What Changed
README.mdtoMANIFEST.inso required packaging metadata files are included in source distributions..github/workflows/cd.ymlto:buildandtwineVERSIONandREADME.mdare presentpython -m twine check dist/*before uploading to PyPI.github/workflows/ci.ymlto apply the same validation flow before uploading to TestPyPIWhy This Change Is Needed
A previous production deployment failed during the PyPI upload step because the built distribution was missing required metadata fields. This PR adds validation and cleanup steps so packaging issues are caught earlier in the pipeline rather than failing at the final upload stage.
Validation
This fix was verified locally by:
python -m twine check dist/*for both the wheel and sdistExpected Outcome
This update should prevent the previous packaging-related production deployment failure from recurring and improve confidence in future releases by validating build artifacts before upload.