Skip to content

Commit

Permalink
Freeze lockfile during bumping
Browse files Browse the repository at this point in the history
  • Loading branch information
nnansters committed Dec 6, 2024
1 parent 0ae6ede commit 27bbb67
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -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}"
Expand Down
9 changes: 7 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 27bbb67

Please sign in to comment.