Skip to content

Commit 5d355cb

Browse files
committed
Add uv sync to bump_version.py
1 parent 37b3a73 commit 5d355cb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/bump_version.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import re
1212
import sys
1313
from pathlib import Path
14+
import subprocess
1415

1516

1617
def get_current_version():
@@ -49,6 +50,9 @@ def update_version(new_version):
4950

5051
pyproject_path.write_text(new_content)
5152

53+
# run uv sync
54+
subprocess.run(["uv", "sync"])
55+
5256

5357
def main():
5458
if len(sys.argv) != 2 or sys.argv[1] not in ["major", "minor", "patch"]:
@@ -66,7 +70,7 @@ def main():
6670
print("✓ Updated pyproject.toml")
6771
print("\nNext steps:")
6872
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}'"
7074
)
7175
print(f"2. Create and push tag: git tag v{new} && git push origin v{new}")
7276
print(

0 commit comments

Comments
 (0)