Switch from uv pip to uv sync --frozen with committed lock file#39
Merged
Conversation
- Add pyproject.toml to main repo (cookiecutter, pre-commit deps) and commit uv.lock - Update post_gen_project.py hook to run `uv lock` after project generation so each generated project gets its own lock file committed to git - Update build.yml: use uv sync --frozen for main deps (+ add .venv/bin to PATH), switch generated project installs to cd + uv sync --frozen, remove uv pip uninstall steps - Update template test.yml: replace uv pip install .[ci/docs] with uv sync --frozen --extra and prefix pytest/make with uv run - Update template ruff.yml: replace uv pip install ruff with uv sync --frozen --extra dev and prefix ruff commands with uv run https://claude.ai/code/session_012mn1vMi5Lv9idTBz2i9Gjs
The cookiecutter template repo has no Python source to install, so hatchling failed with "unable to determine which files to ship". Remove build-system entirely and set tool.uv.package=false so uv treats this as a virtual project (deps only, no self-install). https://claude.ai/code/session_012mn1vMi5Lv9idTBz2i9Gjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
uv lockafter project generationso each generated project gets its own lock file committed to git
switch generated project installs to cd + uv sync --frozen, remove uv pip uninstall steps
and prefix pytest/make with uv run
and prefix ruff commands with uv run
https://claude.ai/code/session_012mn1vMi5Lv9idTBz2i9Gjs