cobra
cobra copied to clipboard
Fix the Cobra package publishing pipeline
Bug Report
Bug: Fix the Cobra package publishing pipeline
Description
I just released our 2023-03 Cobra release v1.1.1 to PyPI but had to do build and publish the distribution archives manually, the CI/CD pipeline for publishing failed: https://github.com/PythonPredictions/cobra/actions/runs/4638116899.
Error (from https://github.com/PythonPredictions/cobra/actions/runs/4638116899/jobs/8207628848):
Run python -m build
/usr/bin/python: No module named build
Probably the only thing required to fix this: an extra step in front with python3 -m pip install --upgrade build
, as described in https://packaging.python.org/en/latest/tutorials/packaging-projects/#generating-distribution-archives.
Let's adapt this and see if it works with the next monthly release. To be checked if the step after the build
problem, pypa/gh-action-pypi-publish also still works (https://github.com/pypa/gh-action-pypi-publish).
Steps to Reproduce
The Cobra release procedure at https://github.com/PythonPredictions/cobra/wiki/Contributing-guidelines-&-workflows#release-workflow.