Skip to content

Commit df01103

Browse files
switch back to uv pip install (#281)
1 parent 53a959a commit df01103

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
2020
### Changed
2121

2222
- Add `--constraint requirements.txt` to the compiling of the two extra requirements files, to constrain the dependencies to the versions specified in the primary requirements file.
23+
- Switch back from `uv pip sync` to `uv pip install` for dependency installation. `uv pip sync` itself is quite strict, only installing exactly what's specified in a given requirements file. This is fine, except if something like `pip` is installed in the virtual environment but not listed as a dependency, it will gladly uninstall it from the venv. I get why they do this, but it makes no sense for local installations to clobber any packages that may already be installed in the venv. In the future, we may consider using `uv pip sync` in environments where it makes sense to allow this behavior, e.g. in the `Dockerfile` or CI.
2324

2425
## [2024.43]
2526

src/django_twc_project/.just/documentation.just

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ build LOCATION="docs/_build/html": cog
1616
# Install documentation dependencies
1717
[no-cd]
1818
install *ARGS:
19-
$python -m uv pip sync {{ ARGS }} docs/requirements.txt
19+
$python -m uv pip install {{ ARGS }} docs/requirements.txt
2020

2121
# Generate documentation requirements
2222
[no-cd]

src/django_twc_project/.just/python.just.jinja

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ coverage-report: test
3131
# Install dependencies
3232
[no-cd]
3333
install *ARGS:
34-
$python -m uv pip sync {% raw %}{{ ARGS }}{% endraw %} requirements.txt requirements.dev.txt
34+
$python -m uv pip install {% raw %}{{ ARGS }}{% endraw %} requirements.txt requirements.dev.txt
3535

3636
# Generate requirements.txt file
3737
[no-cd]

src/django_twc_project/pyproject.toml.jinja

-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ dev = [
6868
"ipython",
6969
"model_bakery",
7070
"mypy",
71-
"pip",
7271
"playwright=={{ playwright_version }}",
7372
"pre-commit",
7473
"pytest",

0 commit comments

Comments
 (0)