Skip to content

fix(setup): Completely exit from setup, if venv python != 3.12#933

Open
Act0r1 wants to merge 2 commits into
jamiepine:mainfrom
Act0r1:main
Open

fix(setup): Completely exit from setup, if venv python != 3.12#933
Act0r1 wants to merge 2 commits into
jamiepine:mainfrom
Act0r1:main

Conversation

@Act0r1

@Act0r1 Act0r1 commented Jul 21, 2026

Copy link
Copy Markdown

Summary

Require Python 3.12 before creating or updating the backend virtual environment.

Kokoro 0.9.4 supports Python versions below 3.13, but the setup script previously fell back to Python 3.13 and only warned about newer versions. This allowed setup to continue until dependency installation failed later with an unrelated-looking pip error.

Summary by CodeRabbit

  • Bug Fixes
    • Python environment setup now consistently enforces Python 3.12.x (including stricter handling on Windows).
    • Setup will now stop with a clear error if the detected Python version doesn’t match 3.12.*.
    • Virtual environments are created using the validated interpreter to prevent version mismatches.
  • Documentation
    • Updated README “Quick Start” prerequisites to require Python 3.12 instead of Python 3.11+.

@coderabbitai

coderabbitai Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 51fc0a0f-4a9b-4798-89f6-f077568249b8

📥 Commits

Reviewing files that changed from the base of the PR and between 6ca8924 and 2f86fd9.

📒 Files selected for processing (1)
  • README.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • README.md

📝 Walkthrough

Walkthrough

The justfile now enforces Python 3.12.x for Unix and Windows environment setup, selects existing venv interpreters when available, and uses the selected interpreter for virtual environment creation. The README prerequisite is updated to Python 3.12.

Changes

Python 3.12 setup enforcement

Layer / File(s) Summary
Interpreter selection and validation
justfile
Unix and Windows setup select an existing venv interpreter when present, require Python 3.12.x, and create new environments with the selected command.
Python prerequisite documentation
README.md
The Quick Start prerequisites now require Python 3.12 instead of Python 3.11+.

Estimated code review effort: 2 (Simple) | ~10 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: setup now aborts unless the virtualenv Python is 3.12.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@justfile`:
- Around line 40-46: Update the README.md prerequisites to require Python 3.12
instead of Python 3.11+. The enforcement in justfile lines 40-46 and 97-103
already matches this requirement and needs no direct changes.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: affa105e-2ddc-4540-b8a0-fd46c8ab479b

📥 Commits

Reviewing files that changed from the base of the PR and between 52f8d8d and fe879c0.

📒 Files selected for processing (1)
  • justfile

Comment thread justfile
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.

1 participant