Skip to content

Commit

Permalink
Separate lock target from install (#284)
Browse files Browse the repository at this point in the history
To avoid updating the lock, and dependencies, when you're just trying to
install.
  • Loading branch information
markwaddle authored Dec 11, 2024
1 parent 5bb7b2a commit 85a248d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions tools/makefiles/python.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,21 @@ else
venv_dir = .venv
endif

UV_SYNC_ARGS ?= --all-extras
UV_RUN_ARGS ?= --all-extras --locked
UV_SYNC_INSTALL_ARGS ?= --all-extras --frozen
UV_SYNC_LOCK_ARGS ?= --all-extras
UV_RUN_ARGS ?= --all-extras --frozen

PYTEST_ARGS ?= --color=yes

## Rules

.PHONY: install
install:
uv sync $(uv_project_args) $(UV_SYNC_ARGS)
uv sync $(uv_project_args) $(UV_SYNC_INSTALL_ARGS)

.PHONY: lock
lock:
uv lock $(uv_project_args) $(UV_LOCK_ARGS)
uv sync $(uv_project_args) $(UV_SYNC_LOCK_ARGS)

.PHONY: clean
clean:
Expand Down
2 changes: 1 addition & 1 deletion tools/makefiles/recursive.mk
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ifndef IS_RECURSIVE_MAKE
# make with VERBOSE=1 to print all outputs of recursive makes
VERBOSE ?= 0

RECURSIVE_TARGETS = clean install test format lint type-check
RECURSIVE_TARGETS = clean install test format lint type-check lock

# You can pass in a list of files or directories to retain when running `clean/git-clean`
# ex: make clean GIT_CLEAN_RETAIN=".env .data"
Expand Down

0 comments on commit 85a248d

Please sign in to comment.