Release: migrate from deprecated build command
@sadielbartholomew is already working on this.
Since Sep 8, 2026.
- Dominant language
- Python
- Stars
- 150
- Forks
- 23
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 2
Description
The command we use to build the source distribution tarball, namely python setup.py sdist, is deprecated (though the use of setup.py is still fine, for now): see this official Python packaging guide, stating (noting nice use of BCP 14!):
commands such as the following MUST NOT be run anymore
We are told to now use python -m build instead. This should be a straightforward change but we it would be good to test it with CI. I am updating the test-source-dist.yml workflow and then we can check it works on those jobs and if you're happy then replace as the build command in the release checklist.
As noticed when updating our Actions workflows.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.