File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 11
11
import re
12
12
import sys
13
13
from pathlib import Path
14
+ import subprocess
14
15
15
16
16
17
def get_current_version ():
@@ -49,6 +50,9 @@ def update_version(new_version):
49
50
50
51
pyproject_path .write_text (new_content )
51
52
53
+ # run uv sync
54
+ subprocess .run (["uv" , "sync" ])
55
+
52
56
53
57
def main ():
54
58
if len (sys .argv ) != 2 or sys .argv [1 ] not in ["major" , "minor" , "patch" ]:
@@ -66,7 +70,7 @@ def main():
66
70
print ("✓ Updated pyproject.toml" )
67
71
print ("\n Next steps:" )
68
72
print (
69
- f"1. Commit the change: git add pyproject.toml && git commit -m 'Bump version to { new } '"
73
+ f"1. Commit the change: git add pyproject.toml uv.lock && git commit -m 'Bump version to { new } '"
70
74
)
71
75
print (f"2. Create and push tag: git tag v{ new } && git push origin v{ new } " )
72
76
print (
You can’t perform that action at this time.
0 commit comments