forked from Boria138/PortProtonQt
feat(dev-scripts): regenerate uv.lock on bump ver
Signed-off-by: Boris Yumankulov <boria138@altlinux.org>
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import re
|
import re
|
||||||
|
import subprocess
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from datetime import date
|
from datetime import date
|
||||||
|
|
||||||
@@ -134,6 +135,12 @@ def main():
|
|||||||
print(f"Updated version from {old} to {new} in {len(updated)} files:")
|
print(f"Updated version from {old} to {new} in {len(updated)} files:")
|
||||||
for p in sorted(updated):
|
for p in sorted(updated):
|
||||||
print(f" - {p}")
|
print(f" - {p}")
|
||||||
|
|
||||||
|
try:
|
||||||
|
subprocess.run(["uv", "lock"], check=True)
|
||||||
|
print("Regenerated uv.lock")
|
||||||
|
except subprocess.CalledProcessError as e:
|
||||||
|
print(f"Failed to regenerate uv.lock: {e}")
|
||||||
else:
|
else:
|
||||||
print(f"No occurrences of version {old} found in specified files.")
|
print(f"No occurrences of version {old} found in specified files.")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user