File tree Expand file tree Collapse file tree 1 file changed +33
-12
lines changed
Expand file tree Collapse file tree 1 file changed +33
-12
lines changed Original file line number Diff line number Diff line change @@ -6,33 +6,54 @@ default:
66
77# run tests
88test :
9- poetry run pytest
10-
11- # publish a new version
12- publish :
13- poetry publish --build
9+ uv run pytest
1410
1511# does a version bump commit
16- bump-commit type : && create-tag
17- poetry version {{ type}}
18- git commit -am " $(poetry version | awk '{print $2}' | xargs echo " bump to" )"
12+ [linux ]
13+ bump-commit type = minor: && create-tag
14+ uv version --bump {{ type}}
15+ git commit -am " $(uv version | awk '{print $2}' | xargs echo " bump to" )"
16+ uv version | awk ' {print $2}' | xargs git tag
1917 git push
18+ git push --tags
19+
20+ [windows ]
21+ bump-commit type = minor: && create-tag
22+ uv version --bump {{ type}}
23+ git commit -am (" bump to " + (uv version | Select-String -Pattern ' \d+\.\d+\.\d+' | ForEach-Object { $_.Matches.Value }))
24+ git fetch --tags
25+ git tag (uv version | Select-String -Pattern ' \S+' | ForEach-Object { $_.Line.Split(' ' )[1 ] })
26+ git push
27+ git push --tags
2028
2129# creates a new tag for the current version
30+ [linux ]
31+ create-tag :
32+ git fetch --tags
33+ uv version | awk ' {print $2}' | xargs git tag
34+ git push --tags
35+
36+ [windows ]
2237create-tag :
2338 git fetch --tags
24- poetry version | awk ' {print $2}' | xargs git tag
39+ git tag (uv version | Select-String -Pattern ' \S+' | ForEach-Object { $_.Line.Split( ' ' )[ 1 ] })
2540 git push --tags
2641
42+
2743# update deps
44+ [linux ]
2845update :
2946 nix flake update
30- # the poetry devs dont allow this with normal update for some unknown reason
31- poetry up --latest
47+ uv sync --all-groups --upgrade
48+
49+ [windows ]
50+ update :
51+ uv sync --all-groups --upgrade
52+
3253
3354# do a dep bump commit with tag and version
3455update-commit : update && create-tag
35- poetry version patch
56+ uv version --bump patch
3657 git commit -am " bump deps"
3758 git push
3859
You can’t perform that action at this time.
0 commit comments