You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- test -d "{{.ROOT_DIR}}/{{.UV_PROJECT_ENVIRONMENT}}"
24
+
25
+
install:
26
+
desc: "Install project dependencies"
27
+
cmds:
28
+
- uv pip install -r pyproject.toml
29
+
dir: "{{.ROOT_DIR}}"
30
+
31
+
lock:
32
+
desc: "Update the project's lockfile."
33
+
summary: |
34
+
If the project lockfile (uv.lock) does not exist, it will be created. If a lockfile is present, its contents will be used as preferences for the resolution.
35
+
36
+
If there are no changes to the project's dependencies, locking will have no effect unless the --upgrade flag is provided.
37
+
cmds:
38
+
- uv lock
39
+
dir: "{{.ROOT_DIR}}"
40
+
41
+
sync:
42
+
desc: "Sync dependencies with lockfile"
43
+
summary: |
44
+
Syncing ensures that all project dependencies are installed and up-to-date with the lockfile.
45
+
46
+
By default, an exact sync is performed: uv removes packages that are not declared as dependencies of the project.
47
+
cmds:
48
+
- uv sync --frozen
49
+
dir: "{{.ROOT_DIR}}"
50
+
51
+
update-deps:
52
+
desc: "Update dependencies"
53
+
summary: |
54
+
Allow package upgrades, ignoring pinned versions in any existing output file. Implies --refresh
55
+
cmds:
56
+
- uv lock --upgrade
57
+
58
+
export-reqs:
59
+
desc: "Export requirements.txt"
60
+
summary: |
61
+
Export the project dependencies to a requirements.txt file.
0 commit comments