mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-04 12:10:16 +03:00
Add --no-sync to uv add
commands
This commit is contained in:
parent
2bcf200ea8
commit
10d5234c02
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user