From 27bbb6745954a4f5ba838d7ea3d7c5ce440ed40e Mon Sep 17 00:00:00 2001 From: Niels Nuyttens Date: Fri, 6 Dec 2024 22:29:29 +0100 Subject: [PATCH] Freeze lockfile during bumping --- .bumpversion.cfg | 4 ++-- justfile | 9 +++++++-- uv.lock | 2 +- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 5fb2dbd..95e070b 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,7 +1,7 @@ [bumpversion] current_version = 0.1.1 -commit = True -tag = True +commit = False +tag = False [bumpversion:file:pyproject.toml] search = version = "{current_version}" diff --git a/justfile b/justfile index d41dcf6..219b776 100644 --- a/justfile +++ b/justfile @@ -1,12 +1,17 @@ alias b := build -app_version := `awk -F' = ' '/^version/ { gsub(/"/, "", $2); print $2 }' pyproject.toml` +old_version := `awk -F' = ' '/^version/ { gsub(/"/, "", $2); print $2 }' pyproject.toml` +new_version := `bump2version --dry-run --list patch | grep new_version | sed -r 's/^.*=//g'` install: uv sync --all-extras --dev bump version="patch": - uv run bump2version {{version}} + uv run --frozen bump2version {{version}} + uv lock --upgrade-package nannyml-datasets + git add . + git commit -m "Bump version: {{old_version}} → {{new_version}}" + git tag {{new_version}} run: uv run python -m there_yet diff --git a/uv.lock b/uv.lock index 8407a2e..4fd958e 100644 --- a/uv.lock +++ b/uv.lock @@ -141,7 +141,7 @@ wheels = [ [[package]] name = "nannyml-datasets" -version = "0.1.0" +version = "0.1.1" source = { editable = "." } dependencies = [ { name = "numpy" },