Skip to content

fix: Python version validation and compatibility warnings#5

Merged
raffelino merged 1 commit intomainfrom
fix/python-version-compat
Mar 10, 2026
Merged

fix: Python version validation and compatibility warnings#5
raffelino merged 1 commit intomainfrom
fix/python-version-compat

Conversation

@raffelino
Copy link
Copy Markdown
Collaborator

Summary

Adds Python version validation on startup with clear compatibility warnings for Python 3.14+.

  • Validates Python version at startup
  • Surfaces actionable error messages when incompatible versions are detected
  • Improves developer experience for fresh installs

Changes

  • fix: add Python version validation and compatibility warnings

- Add validate_python_version() to normalize "3.12.5" → "3.12" and reject
  invalid versions (< 3.9, non-numeric, wrong format)
- Add check_python_version_compatibility() to warn about prerelease versions
  (3.14) that may have limited package availability
- Improve create_venv task error messages: detect "No interpreter found",
  download failures, and missing package distributions with actionable hints
- Return python_version_warning field in EnvResponse when creating environments
- Frontend shows warning toast when creating env with prerelease Python
- Add Python 3.13 to CI test matrix (fail-fast: false)
- Add 17 new venv_utils tests + 5 new router tests for version validation
- i18n: pythonVersionWarning toast label in EN/DE/FR/ES

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown
Collaborator Author

@raffelino raffelino left a comment

Choose a reason for hiding this comment

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

lgtm

@raffelino raffelino merged commit b454ab9 into main Mar 10, 2026
1 check passed
raffelino added a commit that referenced this pull request Mar 11, 2026
Add missing entries for security hardening (#4), Python version
validation (#5), RoboView integration (#11), and all new tests.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@raffelino raffelino deleted the fix/python-version-compat branch March 11, 2026 07:03
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