Skip to content

fix: pin uv installation to 0.12.0 across scripts - #46

Open
ai-anant wants to merge 1 commit into
cyfinoid:mainfrom
ai-anant:fix/3-uv-install-consistency
Open

fix: pin uv installation to 0.12.0 across scripts#46
ai-anant wants to merge 1 commit into
cyfinoid:mainfrom
ai-anant:fix/3-uv-install-consistency

Conversation

@ai-anant

@ai-anant ai-anant commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Addresses #3 (uv installation shenanigans). The CI workflows were already migrated to the pinned astral-sh/setup-uv action (version 0.12.0), but the local install scripts still had inconsistent/unpinned uv installs:

Changes

  • scripts/install.sh
    • Added a single UV_VERSION="0.12.0" variable as the source of truth, matching requirements-uv.txt (hashed pin) and pyproject.toml [tool.uv] required-version = ">=0.12.0,<0.13.0".
    • macOS/Linux now use the versioned installer https://astral.sh/uv/${UV_VERSION}/install.sh instead of the unpinned latest install.sh.
    • Fixed the Windows fallback from the stale uv==0.11.32 (which violated the project's required-version constraint and would break uv sync) to uv==${UV_VERSION}.
    • Fixed a minor indentation issue in the success message block.
  • scripts/setup-dev.sh — suggested curl install now references the versioned 0.12.0 installer.
  • scripts/README.md — updated stale "Version: 0.11.32" reference to 0.12.0.

Verification

  • bash -n scripts/install.sh scripts/setup-dev.sh → syntax OK
  • pytest tests/ → 6 passed
  • Versioned installer URL verified reachable: https://astral.sh/uv/0.12.0/install.sh (HTTP 200)
  • No remaining 0.11.32 / unpinned astral.sh/uv/install.sh references in scripts/ or .github/

Fixes #3

Centralize the uv version in scripts/install.sh via a single UV_VERSION
variable (matching requirements-uv.txt and pyproject.toml's
required-version), use the versioned astral installer URL on macOS/Linux
instead of the unpinned latest installer, and fix the stale uv==0.11.32
fallback on Windows (which violated the project's required-version
constraint). Update setup-dev.sh hint and scripts/README.md to match.

Fixes cyfinoid#3
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.

uv installation shenanigans

1 participant