NCAS-CMS / NCAS-CMS/cf-python

Release: migrate from deprecated build command

Open
#966 0 comments 0 reactions 1 assignee View on GitHub

@sadielbartholomew is already working on this.

Since Sep 8, 2026.

release
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.