Skip to main content

Detect how uv was installed and get upgrade instructions

Project description

uvhow

Detect how uv was installed and get upgrade instructions.

Usage

Run with uvx (recommended):

uvx uvhow

Or install and run:

uv add uvhow
uvhow

Example Output

🔍 uv installation detected

✅ Found uv: uv 0.8.0 (0b2357294 2025-07-17)
📍 Location: /Users/user/.local/bin/uv

🎯 Installation method: Standalone installer
💡 To upgrade: uv self update

Supported Installation Methods

  • Standalone installer (~/.local/bin/uv) -> uv self update
  • Cargo (~/.cargo/bin/uv) -> cargo install --git https://github.com/astral-sh/uv uv --force
  • Homebrew (/opt/homebrew/bin/uv) -> brew upgrade uv
  • pipx (~/.local/share/pipx/venvs/uv/bin/uv) -> pipx upgrade uv
  • pip (virtual environment) -> pip install --upgrade uv
  • pip (system) -> sudo pip install --upgrade uv
  • pip (user) -> pip install --upgrade --user uv

Programmatic Usage

from uvhow import detect_uv_installation

installation = detect_uv_installation()
if installation:
    print(f"Method: {installation.method}")
    print(f"Upgrade: {installation.upgrade_command}")

Development

Releasing New Versions

Use the included version bump script to release new versions:

# Preview what will happen
python bump_version.py patch --dry-run

# Bump patch version (0.1.2 -> 0.1.3) and deploy
python bump_version.py patch

# Bump minor version (0.1.2 -> 0.2.0) and deploy  
python bump_version.py minor

# Bump major version (0.1.2 -> 1.0.0) and deploy
python bump_version.py major

The script will:

  1. Update the version in pyproject.toml
  2. Commit the version change
  3. Create a git tag (e.g., v0.1.3)
  4. Push the tag to trigger GitHub Actions deployment to PyPI

Requirements:

  • Clean git working directory (no uncommitted changes)
  • Push access to the repository

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uvhow-0.3.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

uvhow-0.3.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file uvhow-0.3.0.tar.gz.

File metadata

  • Download URL: uvhow-0.3.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for uvhow-0.3.0.tar.gz
Algorithm Hash digest
SHA256 04a21b3feac119e50c8149a0f836b67a26d3bcd110955b04173e12a8ec079c4b
MD5 d485189aff8c9ab6f144de41bf14d598
BLAKE2b-256 a84abc1116a957ee1329bed0bed34fcbc10563c5d923dd1ac0f4ce9d58481c2c

See more details on using hashes here.

Provenance

The following attestation bundles were made for uvhow-0.3.0.tar.gz:

Publisher: publish.yml on python-developer-tooling-handbook/uvhow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file uvhow-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: uvhow-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for uvhow-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c8f747d329a84771f8397ff0e4eedd75d632086f232deca5bdfa7530240e8c90
MD5 676402a214e43746a52901606700a0de
BLAKE2b-256 debb0603a3c0886d53ab80619259188a876a6e0776e5ec6a97209495133ba564

See more details on using hashes here.

Provenance

The following attestation bundles were made for uvhow-0.3.0-py3-none-any.whl:

Publisher: publish.yml on python-developer-tooling-handbook/uvhow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page