From 1ea1fe38583a9f3e4cfbc99184ffdf0826abc16a Mon Sep 17 00:00:00 2001 From: Jakob Keller <57402305+jakob-keller@users.noreply.github.com> Date: Mon, 28 Oct 2024 00:54:10 +0100 Subject: [PATCH] build(python): sync `uv.lock` --- .github/workflows/release.yml | 9 --------- pyproject.toml | 3 +++ 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 48d58e1..c5b96a0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,7 +30,6 @@ jobs: id-token: write env: UV_PYTHON_PREFERENCE: only-system - UV_LOCKED: 1 steps: - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" @@ -52,17 +51,9 @@ jobs: name: Create bump and changelog uses: commitizen-tools/commitizen-action@0.21.0 with: - push: false github_token: ${{ secrets.GITHUB_TOKEN }} increment: ${{ inputs.increment }} check_consistency: true - - name: Amend commit with updated uv.lock - run: | - UV_LOCKED=0 uv lock - git add uv.lock - git commit --amend --no-edit - git tag ${{ steps.cz.outputs.version }} --force - git push --tags - name: Build package run: uv build - name: Release to GitHub diff --git a/pyproject.toml b/pyproject.toml index 1b5b633..71ea3b4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -61,6 +61,9 @@ documentation = "https://api.peprock.ponte.energy" version_provider = "pep621" update_changelog_on_bump = true bump_message = "chore: bump version to $new_version" +pre_bump_hooks = [ + "uv lock", +] changelog_incremental = true