File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 1111"""
1212
1313import re
14+ import subprocess
1415from pathlib import Path
1516
1617import tomli
1718
1819
1920def main () -> None :
20- """Update version in __init__.py to match pyproject.toml."""
21+ """Update version in __init__.py to match pyproject.toml and refresh uv.lock ."""
2122 # Read version from pyproject.toml
2223 pyproject_path = Path ("pyproject.toml" )
2324 init_path = Path ("stackone_ai/__init__.py" )
@@ -36,6 +37,11 @@ def main() -> None:
3637 else :
3738 print (f"Version in { init_path } already matches { version } " )
3839
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+
3945
4046if __name__ == "__main__" :
4147 main ()
You can’t perform that action at this time.
0 commit comments