Add --no-sync to uv add commands

This commit is contained in:
jelmert 2025-04-15 09:53:57 +02:00 committed by Jelmer Draaijer
parent 2bcf200ea8
commit 10d5234c02

View File

@ -529,14 +529,14 @@ def setup_dependencies():
# Install production dependencies # Install production dependencies
try: try:
subprocess.run(uv_cmd + ["add", "-r", "requirements/production.txt"], check=True) subprocess.run(uv_cmd + ["add", "--no-sync", "-r", "requirements/production.txt"], check=True)
except subprocess.CalledProcessError as e: except subprocess.CalledProcessError as e:
print(f"Error installing production dependencies: {e}", file=sys.stderr) print(f"Error installing production dependencies: {e}", file=sys.stderr)
sys.exit(1) sys.exit(1)
# Install local (development) dependencies # Install local (development) dependencies
try: try:
subprocess.run(uv_cmd + ["add", "--dev", "-r", "requirements/local.txt"], check=True) subprocess.run(uv_cmd + ["add", "--no-sync", "--dev", "-r", "requirements/local.txt"], check=True)
except subprocess.CalledProcessError as e: except subprocess.CalledProcessError as e:
print(f"Error installing local dependencies: {e}", file=sys.stderr) print(f"Error installing local dependencies: {e}", file=sys.stderr)
sys.exit(1) sys.exit(1)