Skip to content

Commit 8f331fe

Browse files
committed
chore: standardize Python version to 3.12 across all scripts
Update all installer and setup scripts to use exactly Python 3.12 instead of >=3.12 for consistent reproducible environments. - Add .python-version file specifying 3.12 - Update ruff.toml target version - Change all uv run commands from --python '>=3.12' to --python 3.12 - Ensure consistent Python version across Windows, Linux, and macOS
1 parent 744fa75 commit 8f331fe

7 files changed

Lines changed: 16 additions & 15 deletions

File tree

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.12

scripts/linux/install-claude-linux.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ echo ""
5151
SCRIPT_URL="https://raw.githubusercontent.com/alex-feel/claude-code-toolbox/main/scripts/install_claude.py"
5252

5353
# Download and run the Python script with uv
54-
# uv will handle Python installation automatically
55-
if curl -fsSL "$SCRIPT_URL" | uv run --python '>=3.12' -; then
54+
# uv will handle Python 3.12 installation automatically
55+
if curl -fsSL "$SCRIPT_URL" | uv run --python 3.12 -; then
5656
exit 0
5757
else
5858
echo -e "${RED}[FAIL]${NC} Installation failed"

scripts/linux/setup-environment.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,16 +79,16 @@ elif [ -n "${CLAUDE_ENV_AUTH:-}" ]; then
7979
fi
8080

8181
# Download and run the Python script with uv
82-
# uv will handle Python installation automatically
82+
# uv will handle Python 3.12 installation automatically
8383
if [ -n "$AUTH_ARGS" ]; then
84-
if curl -fsSL "$SCRIPT_URL" | uv run --python '>=3.12' - "$CONFIG" $AUTH_ARGS; then
84+
if curl -fsSL "$SCRIPT_URL" | uv run --python 3.12 - "$CONFIG" $AUTH_ARGS; then
8585
exit 0
8686
else
8787
echo -e "${RED}[FAIL]${NC} Setup failed"
8888
exit 1
8989
fi
9090
else
91-
if curl -fsSL "$SCRIPT_URL" | uv run --python '>=3.12' - "$CONFIG"; then
91+
if curl -fsSL "$SCRIPT_URL" | uv run --python 3.12 - "$CONFIG"; then
9292
exit 0
9393
else
9494
echo -e "${RED}[FAIL]${NC} Setup failed"

scripts/macos/install-claude-macos.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ echo ""
5151
SCRIPT_URL="https://raw.githubusercontent.com/alex-feel/claude-code-toolbox/main/scripts/install_claude.py"
5252

5353
# Download and run the Python script with uv
54-
# uv will handle Python installation automatically
55-
if curl -fsSL "$SCRIPT_URL" | uv run --python '>=3.12' -; then
54+
# uv will handle Python 3.12 installation automatically
55+
if curl -fsSL "$SCRIPT_URL" | uv run --python 3.12 -; then
5656
exit 0
5757
else
5858
echo -e "${RED}[FAIL]${NC} Installation failed"

scripts/macos/setup-environment.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,16 +79,16 @@ elif [ -n "${CLAUDE_ENV_AUTH:-}" ]; then
7979
fi
8080

8181
# Download and run the Python script with uv
82-
# uv will handle Python installation automatically
82+
# uv will handle Python 3.12 installation automatically
8383
if [ -n "$AUTH_ARGS" ]; then
84-
if curl -fsSL "$SCRIPT_URL" | uv run --python '>=3.12' - "$CONFIG" $AUTH_ARGS; then
84+
if curl -fsSL "$SCRIPT_URL" | uv run --python 3.12 - "$CONFIG" $AUTH_ARGS; then
8585
exit 0
8686
else
8787
echo -e "${RED}[FAIL]${NC} Setup failed"
8888
exit 1
8989
fi
9090
else
91-
if curl -fsSL "$SCRIPT_URL" | uv run --python '>=3.12' - "$CONFIG"; then
91+
if curl -fsSL "$SCRIPT_URL" | uv run --python 3.12 - "$CONFIG"; then
9292
exit 0
9393
else
9494
echo -e "${RED}[FAIL]${NC} Setup failed"

scripts/windows/install-claude-windows.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ try {
5151
$tempScript = [System.IO.Path]::GetTempFileName() + ".py"
5252
Invoke-WebRequest -Uri $scriptUrl -OutFile $tempScript -UseBasicParsing
5353

54-
# Run with uv (it will handle Python installation automatically)
55-
& uv run --python '>=3.12' $tempScript
54+
# Run with uv (it will handle Python 3.12 installation automatically)
55+
& uv run --python 3.12 $tempScript
5656
$exitCode = $LASTEXITCODE
5757

5858
# Clean up

scripts/windows/setup-environment.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@ try {
9090
$authArgs = @('--auth', $env:CLAUDE_ENV_AUTH)
9191
}
9292

93-
# Run with uv (it will handle Python installation automatically)
93+
# Run with uv (it will handle Python 3.12 installation automatically)
9494
if ($authArgs.Count -gt 0) {
95-
& uv run --python '>=3.12' $tempScript $config @authArgs
95+
& uv run --python 3.12 $tempScript $config @authArgs
9696
} else {
97-
& uv run --python '>=3.12' $tempScript $config
97+
& uv run --python 3.12 $tempScript $config
9898
}
9999
$exitCode = $LASTEXITCODE
100100

0 commit comments

Comments
 (0)