Fix deploy CI: replace deprecated setup.py bdist_wheel with python -m build - #26
Merged
Merged
Conversation
… build The old `python3 setup.py sdist bdist_wheel --universal` command produces wheels with missing metadata (Name, Version) when using newer versions of setuptools. Replace with the modern `python3 -m build` approach, and install the `build` package instead of `wheel`.
Copilot
AI
changed the title
[WIP] Fix the failing GitHub Actions job deploy
Fix deploy CI: replace deprecated setup.py bdist_wheel with python -m build
Jul 29, 2026
ob-uk
marked this pull request as ready for review
July 29, 2026 21:25
The old v1.8.14 action used an old twine/pkginfo that only supported Metadata-Version up to 2.3. The new python3 -m build generates Metadata-Version 2.4, which the old action couldn't parse, causing the "Metadata is missing required fields: Name, Version" error. v1.14.2 includes Twine v7 which supports Metadata-Version 2.4 and 2.5.
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.
The
deployworkflow was failing becausepython3 setup.py sdist bdist_wheel --universalproduces wheels with missingNameandVersionmetadata fields when run against newer versions of setuptools, causingtwine checkto reject them withInvalidDistribution.Changes
.github/workflows/publish.yamlpip install ... wheelwithpip install ... buildpython3 setup.py sdist bdist_wheel --universalwithpython3 -m build(PEP 517-compliant)