✨ Venv recovery, requires-python reuse, --venv-dir, and logging#20
Open
ThatXliner wants to merge 5 commits into
Open
✨ Venv recovery, requires-python reuse, --venv-dir, and logging#20ThatXliner wants to merge 5 commits into
ThatXliner wants to merge 5 commits into
Conversation
Reuse of a cached venv assumed the directory was intact. A venv left half-built by an interrupted dependency install, or one whose interpreter later went missing, was returned as-is and broke every later run. Validate bin/python before reusing a cached venv and rebuild it when missing. Wrap creation and install so a failure or KeyboardInterrupt removes the partial venv instead of leaving a broken cache entry. Closes #11 Closes #16 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
requires-python resolution always picked the newest installed Python matching the clause, so loosening a clause (e.g. >=3.11,<3.12 to >=3.11) spawned a fresh newer venv even though an existing venv still satisfied it. Pass the dependency hash into resolution and, before selecting the newest match, prefer any Python that satisfies the clause and already has a usable cached venv for those dependencies. Closes #14 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Venvs always lived in the global platformdirs cache, so a script could not keep its environment alongside itself or in a project-local directory. Add --venv-dir to create and reuse the venv at an explicit location instead of the cache. Closes #15 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
idae was silent about which Python it picked and hid all pip and venv output, leaving no way to diagnose a slow or failing setup. Add -v/--verbose: -v reports the resolved run at info level, -vv enables debug and streams pip/venv output instead of capturing it. Output stays quiet by default. Closes #10 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Implements five open issues around venv handling and observability.
Changes
Tests
Added coverage for broken-venv recreation, `--venv-dir`, and `-v` logging. Full suite green (20 passed); ruff + black + isort + mypy --strict clean.
🤖 Generated with Claude Code