Skip to content

Commit c0daee2

Browse files
authored
Merge pull request #5451 from opensafely-core/KatieB5/switch-pip-install-to-uv
Use `uv` to install dependencies from requirements files
2 parents d0112c0 + c854f0e commit c0daee2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

justfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ prodenv: requirements-prod
6363
# exit if .txt file has not changed since we installed them (-nt == "newer than', but we negate with || to avoid error exit code)
6464
test requirements.prod.txt -nt $VIRTUAL_ENV/.prod || exit 0
6565

66-
# --no-deps is recommended when using hashes, and also worksaround a bug with constraints and hashes.
67-
# https://pip.pypa.io/en/stable/topics/secure-installs/#do-not-use-setuptools-directly
68-
$PIP install --no-deps -r requirements.prod.txt
66+
# --no-deps so that we only install the packages explicitly listed in requirements.prod.txt.
67+
# https://docs.astral.sh/uv/reference/cli/#uv-pip-install--no-deps
68+
uv pip install -r requirements.prod.txt
6969
touch $VIRTUAL_ENV/.prod
7070

7171

@@ -80,9 +80,9 @@ devenv: prodenv requirements-dev && install-precommit
8080
# exit if .txt file has not changed since we installed them (-nt == "newer than', but we negate with || to avoid error exit code)
8181
test requirements.dev.txt -nt $VIRTUAL_ENV/.dev || exit 0
8282

83-
# --no-deps is recommended when using hashes, and also worksaround a bug with constraints and hashes.
84-
# https://pip.pypa.io/en/stable/topics/secure-installs/#do-not-use-setuptools-directly
85-
$PIP install --no-deps -r requirements.dev.txt
83+
# --no-deps so that we only install the packages explicitly listed in requirements.dev.txt.
84+
# https://docs.astral.sh/uv/reference/cli/#uv-pip-install--no-deps
85+
uv pip install --no-deps -r requirements.dev.txt
8686
touch $VIRTUAL_ENV/.dev
8787

8888
# ensure precommit is installed

0 commit comments

Comments
 (0)