We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 03c6541 + bde6d88 commit 959fc4cCopy full SHA for 959fc4c
1 file changed
scripts/update_version.py
@@ -11,13 +11,14 @@
11
"""
12
13
import re
14
+import subprocess
15
from pathlib import Path
16
17
import tomli
18
19
20
def main() -> None:
- """Update version in __init__.py to match pyproject.toml."""
21
+ """Update version in __init__.py to match pyproject.toml and refresh uv.lock."""
22
# Read version from pyproject.toml
23
pyproject_path = Path("pyproject.toml")
24
init_path = Path("stackone_ai/__init__.py")
@@ -36,6 +37,11 @@ def main() -> None:
36
37
else:
38
print(f"Version in {init_path} already matches {version}")
39
40
+ # Update uv.lock to reflect version change in pyproject.toml
41
+ print("Updating uv.lock...")
42
+ subprocess.run(["uv", "lock"], check=True)
43
+ print("uv.lock updated successfully")
44
+
45
46
if __name__ == "__main__":
47
main()
0 commit comments