python-package-template icon indicating copy to clipboard operation
python-package-template copied to clipboard

Improve scripted building

Open jenstroeger opened this issue 2 years ago • 0 comments

Imagine Github is down and Action workflows aren’t available, and you want to publish the next release of your package… 😳

We currently still have small blobs of code in our Action workflows that could move into the Makefile. The goal of this exercise is to be able to use the Makefile locally and be able to build and publish a package release locally. The Action workflows should then simply use these Makefile goals, too.

Here’s a list of new Makefile goals we can consider:

  • make dist-hash https://github.com/jenstroeger/python-package-template/blob/0b40f48f607bf1a69b8f4963dea3105ee0f3bf93/.github/workflows/_build.yaml#L107-L122
  • make release https://github.com/jenstroeger/python-package-template/blob/0b40f48f607bf1a69b8f4963dea3105ee0f3bf93/.github/workflows/release.yaml#L65-L74
  • make release-publish https://github.com/jenstroeger/python-package-template/blob/0b40f48f607bf1a69b8f4963dea3105ee0f3bf93/.github/workflows/release.yaml#L148-L167
  • make release-gh https://github.com/jenstroeger/python-package-template/blob/0b40f48f607bf1a69b8f4963dea3105ee0f3bf93/.github/workflows/release.yaml#L134-L146 and https://github.com/jenstroeger/python-package-template/blob/0b40f48f607bf1a69b8f4963dea3105ee0f3bf93/.github/workflows/release.yaml#L213-L216

The _release-notifications.yaml and _wiki-documentation.yaml Actions, in their entirety, could also be hoisted into the Makefile and be made part of the release.

jenstroeger avatar May 10 '23 22:05 jenstroeger