From a0bbe278736bbdf5e6cfaa27c41545a7f8f34ef4 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 23 Jan 2026 13:42:07 +0000 Subject: [PATCH 1/3] Update instance repo from cookiecutter template --- .cruft.json | 4 ++-- .github/workflows/test.yaml | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.cruft.json b/.cruft.json index a8fe943..44c42cb 100644 --- a/.cruft.json +++ b/.cruft.json @@ -1,6 +1,6 @@ { "template": "/home/runner/work/cookiecutter-scverse/cookiecutter-scverse", - "commit": "77339226581ec535e1972984083ae70b702e7bec", + "commit": "309a7db7a973b5f61a32d8cdb37f8a6f358f594b", "checkout": null, "context": { "cookiecutter": { @@ -36,7 +36,7 @@ "trim_blocks": true }, "_template": "/home/runner/work/cookiecutter-scverse/cookiecutter-scverse", - "_commit": "77339226581ec535e1972984083ae70b702e7bec" + "_commit": "309a7db7a973b5f61a32d8cdb37f8a6f358f594b" } }, "directory": null diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index ab88fb4..0c31960 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -19,7 +19,7 @@ jobs: # Check [[tool.hatch.envs.hatch-test.matrix]] in pyproject.toml and https://hatch.pypa.io/latest/environment/ for # more details. get-environments: - runs-on: ubuntu-latest + runs-on: ubuntu-slim outputs: envs: ${{ steps.get-envs.outputs.envs }} steps: @@ -70,6 +70,8 @@ jobs: python-version: ${{ matrix.env.python }} - name: create hatch environment run: uvx hatch env create ${{ matrix.env.name }} + - name: list all all installed package versions + run: uvx hatch run ${{ matrix.env.name }}:pip list - name: run tests using hatch env: MPLBACKEND: agg From ba491b1f5ba074479be02ab566327f869b188357 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 23 Jan 2026 14:48:32 +0000 Subject: [PATCH 2/3] Update instance repo from cookiecutter template --- .cruft.json | 4 ++-- .github/workflows/test.yaml | 2 +- .pre-commit-config.yaml | 2 +- docs/template_usage.md | 9 ++++++--- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.cruft.json b/.cruft.json index 44c42cb..7cbc281 100644 --- a/.cruft.json +++ b/.cruft.json @@ -1,6 +1,6 @@ { "template": "/home/runner/work/cookiecutter-scverse/cookiecutter-scverse", - "commit": "309a7db7a973b5f61a32d8cdb37f8a6f358f594b", + "commit": "93660ec7612a7dbbfac3d8dceb0a03955f5dea46", "checkout": null, "context": { "cookiecutter": { @@ -36,7 +36,7 @@ "trim_blocks": true }, "_template": "/home/runner/work/cookiecutter-scverse/cookiecutter-scverse", - "_commit": "309a7db7a973b5f61a32d8cdb37f8a6f358f594b" + "_commit": "93660ec7612a7dbbfac3d8dceb0a03955f5dea46" } }, "directory": null diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 0c31960..986686d 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -71,7 +71,7 @@ jobs: - name: create hatch environment run: uvx hatch env create ${{ matrix.env.name }} - name: list all all installed package versions - run: uvx hatch run ${{ matrix.env.name }}:pip list + run: uvx hatch run ${{ matrix.env.name }}:uv pip list - name: run tests using hatch env: MPLBACKEND: agg diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2bf7d5a..ac8ee64 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,7 +16,7 @@ repos: hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.14.11 + rev: v0.14.13 hooks: - id: ruff-check types_or: [python, pyi, jupyter] diff --git a/docs/template_usage.md b/docs/template_usage.md index 85081b4..c053542 100644 --- a/docs/template_usage.md +++ b/docs/template_usage.md @@ -144,9 +144,11 @@ There you can see the execution history, logs, and (re-)trigger workflows manual [Github Actions]: https://github.com/features/actions [twine]: https://github.com/pypa/twine -### Automating PyPI released using GitHub actions +(automating-the-pypi-release-using-github-actions)= +(automating-pypi-released-using-github-actions)= +(configuring-the-github-workflow)= -#### Configuring the Github workflow +### Automating the PyPI release using GitHub actions Tags adhering to `"*.*.*"` that are pushed to the `main` branch will trigger the release Github workflow that automatically builds and uploads the Python package to [PyPI][]. @@ -155,8 +157,9 @@ To set this up, login to [PyPI][], and proceed depending on whether you already - If yes, navigate to the project. In the left sidebar, choose "Publishing", then proceed to add the repository details. - If not, go to your [PyPI publishing settings][] and fill out the “Add a new pending publisher” form. +Enter everything *exactly* as it is displayed on GitHub (i.e. use the correct casing for your repository name). The "Workflow name" needs to bet set to `release.yaml`. -In most cases, you can leave the "Environment name" empty. +Set "Environment name" to “pypi” to match `environment: pypi` in `.github/workflows/release.yaml`. For more details, please refer to the official [PyPI guide for setting up trusted publishing][trusted publisher]. [pypi-trusted-publishing-guide]: https://docs.pypi.org/trusted-publishers/adding-a-publisher/ From 23247d7291471ce37bf97abb4868282b442b2bb9 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 23 Jan 2026 14:58:01 +0000 Subject: [PATCH 3/3] Update instance repo from cookiecutter template --- .cruft.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.cruft.json b/.cruft.json index 7cbc281..4d1cef8 100644 --- a/.cruft.json +++ b/.cruft.json @@ -1,6 +1,6 @@ { "template": "/home/runner/work/cookiecutter-scverse/cookiecutter-scverse", - "commit": "93660ec7612a7dbbfac3d8dceb0a03955f5dea46", + "commit": "2e75ba3563db51cf9022a1a0c9cc5d2f6c18edb1", "checkout": null, "context": { "cookiecutter": { @@ -36,7 +36,7 @@ "trim_blocks": true }, "_template": "/home/runner/work/cookiecutter-scverse/cookiecutter-scverse", - "_commit": "93660ec7612a7dbbfac3d8dceb0a03955f5dea46" + "_commit": "2e75ba3563db51cf9022a1a0c9cc5d2f6c18edb1" } }, "directory": null