Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计异常

uv-python-version-managementUV Python version management 搜索

Agent Skill

用于辅助 Python 项目开发、测试、依赖管理和常见框架工作流。它适合让 Agent 阅读 Python 代码、定位测试问题、整理运行命令、生成脚本或分析数据处理逻辑。使用时需要确认项目虚拟环境、依赖版本和测试入口;涉及执行脚本、读写文件、访问数据库或调用外部 API 时,应先明确运行目录和输入输出范围,避免误改生产数据。

总安装

97

周安装

8

GitHub Stars

1

下载量

65
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:uv-python-version-management(UV Python version management 搜索)
来源仓库:https://github.com/dawiddutoit/custom-claude
仓库路径:skills/uv-python-version-management
安装命令:
npx skills add https://github.com/dawiddutoit/custom-claude --skill uv-python-version-management
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/dawiddutoit/custom-claude --skill uv-python-version-management

简介

用于辅助 Python 项目开发、测试、依赖管理和常见框架工作流。

  • 适合让 Agent 阅读 Python 代码、定位测试问题、整理运行命令或分析数据处理逻辑。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装并使用。
  • 使用时需确认项目虚拟环境、依赖版本和测试入口;涉及执行脚本或读写文件时需明确运行目录和输入输出范围。
  • uv-python-version-management 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

uv Python Version Management

Purpose

Discover, install, and manage Python versions across your projects and tools. Ensure consistent Python versions within teams and easily test across multiple versions.

Quick Start

Find and pin a Python version for your project:

# See what Python versions are available
uv python list

# Install a specific version
uv python install 3.12

# Pin it for your project
uv python pin 3.12

# Verify
cat .python-version

Now anyone using this project automatically uses Python 3.12.

Instructions

Step 1: Understand Python Version Management

uv helps with three related tasks:

Python Discovery: Find what versions are available

uv python list        # Show installed and available versions

Python Installation: Install specific versions

uv python install 3.12

Project Pinning: Ensure team uses same version

uv python pin 3.12    # Create .python-version file

Step 2: Discover Available Python Versions

List all known versions:

uv python list

Output example:

3.9.19   (installed)
3.10.14  (installed)
3.11.7   (installed)
3.12.1   (installed) ← Currently in use
3.13.0rc1
3.13.0

See only installed:

uv python list --only-installed

Find latest of a version:

uv python list | grep "3.12"

Step 3: Install Python Versions

Install specific version:

uv python install 3.12          # Latest 3.12.x
uv python install 3.12.1        # Exact version
uv python install 3.11.5        # Older version for testing

Install multiple versions:

uv python install 3.11 3.12 3.13

This is automated - no manual compilation needed.

Step 4: Pin Project Python Version

Create.python-version file:

cd my-project
uv python pin 3.12
cat .python-version
# Output: 3.12

What this does:

  • Creates .python-version file in project root
  • Any uv command in that directory uses Python 3.12
  • Team members automatically get same version
  • Commit to git for consistency

Pin specific patch version:

uv python pin 3.12.1

Step 5: Run Tools with Specific Python

Test code with different Python versions:

uvx --python 3.10 pytest tests/
uvx --python 3.11 pytest tests/
uvx --python 3.12 pytest tests/

Useful for:

  • Testing backward compatibility
  • Ensuring minimum Python requirement works
  • Validating code on pre-release versions

Step 6: Python Versions in CI/CD

GitHub Actions with matrix:

strategy:
  matrix:
    python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
  - uses: astral-sh/setup-uv@v6
  - run: uv python install ${{ matrix.python-version }}
  - run: uv sync --all-groups
  - run: uv run pytest

GitLab CI with matrix:

test:
  parallel:
    matrix:
      - PYTHON_VERSION: ["3.10", "3.11", "3.12"]
  image: python:${PYTHON_VERSION}
  before_script:
    - uv python install ${PYTHON_VERSION}
  script:
    - uv sync --all-groups
    - uv run pytest

Step 7: Handle Pre-Release Versions

Check for pre-release versions:

uv python list | grep rc
uv python list | grep alpha
uv python list | grep beta

Install pre-release:

uv python install 3.13.0rc1

Pin pre-release for testing:

uv python pin 3.13.0rc1

Examples

Example 1: Find and Install Python 3.12

# See what's available
uv python list

# Find Python 3.12
uv python list | grep "3.12"

# Install it
uv python install 3.12

# Verify installation
python --version

Example 2: Project Setup with Pinned Version

# Create new project
uv init my-app
cd my-app

# Pin to Python 3.12
uv python pin 3.12

# Team member clones and uses it
cd my-app                 # Automatically uses 3.12
python --version          # Python 3.12.1

Example 3: Test Backward Compatibility

# Test with minimum supported version
uvx --python 3.10 pytest tests/

# Test with current version
uvx --python 3.12 pytest tests/

# Test with pre-release
uvx --python 3.13.0rc1 pytest tests/

# All run without installing Python versions globally

Example 4: CI/CD Matrix Testing

# .github/workflows/test.yml
name: Tests
on: [push]

jobs:
  test:
    strategy:
      matrix:
        python-version: ["3.10", "3.11", "3.12", "3.13"]
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: astral-sh/setup-uv@v6
      - run: uv python install ${{ matrix.python-version }}
      - run: uv sync --all-groups
      - run: uv run pytest

Example 5: Docker Build with Pinned Version

FROM python:3.12-slim
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
WORKDIR /app
COPY .python-version pyproject.toml uv.lock ./
RUN uv sync --frozen --no-dev
COPY . .
CMD ["python", "-m", "myapp"]

Example 6: Legacy Project Migration

# Old project on Python 3.9
cd legacy-project

# Check current version
python --version          # Python 3.9.13

# Upgrade to 3.12
uv python install 3.12
uv python pin 3.12

# Test with new version
uv run pytest

# Commit for team
git add .python-version
git commit -m "Upgrade to Python 3.12"

Requirements

  • uv installed (install: curl -LsSf https://astral.sh/uv/install.sh | sh)
  • Internet connection (to download Python versions)
  • Disk space (each Python version ~100-200 MB)
  • Administrator access (on Windows, might need for installation)

See Also

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.52%
按下载量换算23

Claude

32.27%
按下载量换算21

Cursor

19.79%
按下载量换算13

Gemini CLI

8.93%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

未通过

Snyk

未通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills