Skip to content

✨ Add --python option to xaibo init command#30

Merged
MFA-X-AI merged 2 commits intomainfrom
fahreza/init-agent-python
Mar 5, 2026
Merged

✨ Add --python option to xaibo init command#30
MFA-X-AI merged 2 commits intomainfrom
fahreza/init-agent-python

Conversation

@MFA-X-AI
Copy link
Member

Currently, initializing a new agent automatically pins the project to the lowest Python version supported by the framework. This PR introduces the --python flag, allowing users to override this default and explicitly specify their desired Python version.

Changes

  • Added --python argument to the init subparser
  • Modified uv init command construction to conditionally include --python flag

Usage

# Use uv's default (checks .python-version, then first Python on PATH)
uv xaibo init my_agent

# Explicitly specify Python version
uv xaibo init my_agent --python 3.12
uv xaibo init my_agent --python 3.13

Technical Details

  • The --python flag is optional - when omitted, uv init uses its standard version resolution
  • When provided, the value is passed directly to uv init --python <version>
  • Supported values: 3.10, 3.11, 3.12, 3.13 (matching xaibo's supported versions)

@MFA-X-AI MFA-X-AI merged commit 022a556 into main Mar 5, 2026
2 checks passed
@MFA-X-AI MFA-X-AI deleted the fahreza/init-agent-python branch March 5, 2026 08:38
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