Skip to content

Switch from uv pip to uv sync --frozen with committed lock file#39

Merged
renefritze merged 2 commits into
mainfrom
claude/uv-sync-frozen-workflow-NtrJJ
May 30, 2026
Merged

Switch from uv pip to uv sync --frozen with committed lock file#39
renefritze merged 2 commits into
mainfrom
claude/uv-sync-frozen-workflow-NtrJJ

Conversation

@renefritze

Copy link
Copy Markdown
Owner
  • 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

claude added 2 commits May 29, 2026 20:36
- 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
@renefritze renefritze merged commit 28757f5 into main May 30, 2026
7 checks passed
@renefritze renefritze deleted the claude/uv-sync-frozen-workflow-NtrJJ branch May 30, 2026 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants