cobra icon indicating copy to clipboard operation
cobra copied to clipboard

Fix the Cobra package publishing pipeline

Open sandervh14 opened this issue 1 year ago • 0 comments

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.

sandervh14 avatar Apr 07 '23 13:04 sandervh14