Skip to content

Fix deploy CI: replace deprecated setup.py bdist_wheel with python -m build - #26

Merged
ob-uk merged 3 commits into
mainfrom
copilot/fix-deploy-job-failure
Jul 29, 2026
Merged

ob-uk merged 3 commits into
mainfrom
copilot/fix-deploy-job-failure

Conversation

Copilot AI commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

The deploy workflow was failing because python3 setup.py sdist bdist_wheel --universal produces wheels with missing Name and Version metadata fields when run against newer versions of setuptools, causing twine check to reject them with InvalidDistribution.

Changes

  • .github/workflows/publish.yaml
    • Replace pip install ... wheel with pip install ... build
    • Replace python3 setup.py sdist bdist_wheel --universal with python3 -m build (PEP 517-compliant)
-        pip3 install setuptools wheel twine
+        pip3 install setuptools build twine
 
-        python3 setup.py sdist bdist_wheel --universal
+        python3 -m build

… 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
Copilot AI requested a review from ob-uk July 29, 2026 21:21
Copilot finished work on behalf of ob-uk July 29, 2026 21:21
@ob-uk
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.
Copilot finished work on behalf of ob-uk July 29, 2026 21:31
@ob-uk
ob-uk merged commit 4996b61 into main Jul 29, 2026
1 check passed
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.

2 participants