Skip to content

Commit cee7c37

Browse files
committed
switch to using uv version --short
1 parent 34e9cb6 commit cee7c37

File tree

1 file changed

+3
-21
lines changed

1 file changed

+3
-21
lines changed

justfile

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,36 +10,18 @@ test:
1010
uv run pytest
1111

1212
# does a version bump commit
13-
[linux]
14-
bump-commit type="minor": && create-tag
15-
uv version --bump {{type}}
16-
git commit -am "$(uv version | awk '{print $2}' | xargs echo "bump to")"
17-
uv version | awk '{print $2}' | xargs git tag
18-
git push
19-
git push --tags
20-
21-
# does a version bump commit
22-
[windows]
2313
bump-commit type="minor": && create-tag
2414
uv version --bump {{type}}
25-
git commit -am ("bump to " + (uv version | Select-String -Pattern '\d+\.\d+\.\d+' | ForEach-Object { $_.Matches.Value }))
15+
git commit -am ("bump to " + (uv version --short))
2616
git fetch --tags
27-
git tag (uv version | Select-String -Pattern '\S+' | ForEach-Object { $_.Line.Split(' ')[1] })
17+
git tag (uv version --short)
2818
git push
2919
git push --tags
3020

3121
# creates a new tag for the current version
32-
[linux]
33-
create-tag:
34-
git fetch --tags
35-
uv version | awk '{print $2}' | xargs git tag
36-
git push --tags
37-
38-
# creates a new tag for the current version
39-
[windows]
4022
create-tag:
4123
git fetch --tags
42-
git tag (uv version | Select-String -Pattern '\S+' | ForEach-Object { $_.Line.Split(' ')[1] })
24+
git tag (uv version --short)
4325
git push --tags
4426

4527

0 commit comments

Comments
 (0)