python

Set up reproducible Python 3.13 environments with uv and project-root .venv.

2|Updated Mar 31, 2026
One-click install
npx skills add https://github.com/PolicyEngine/policyengine-skills --skill python-policyengine
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: python
Source: https://github.com/PolicyEngine/policyengine-skills/tree/main/skills/technical-patterns/python-skill
Command: npx skills add https://github.com/PolicyEngine/policyengine-skills --skill python-policyengine

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This solution helps teams establish a consistent Python development environment by standardizing the use of uv, Python 3.13, and a project-root .venv.

Core Features & Use Cases

  • Enforces a reproducible Python environment using uv and Python 3.13.
  • Creates and activates a project-root .venv with deterministic commands.
  • Standardizes dependency installation through uv pip install and editable installs.

Quick Start

Activate the project’s Python environment with uv venv --python 3.13 at the project root, then install dependencies with uv pip install.

Frequently Asked Questions about python

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up a reproducible Python environment using uv?▼

You can standardize a Python project environment by creating a `.venv` at the project root using `uv venv --python 3.13`. This ensures reproducible environments across local development and CI pipelines.

What is the best way to manage dependencies with uv in a Python 3.13 project?▼

The best way to manage dependencies with uv is to use `uv pip install` for package installation and editable installs within the project-root `.venv`. This guarantees deterministic dependency resolution for Python 3.13 environments.

Can I use this Python environment setup for CI pipelines and local development?▼

Yes, this setup applies to both local development and CI pipelines. Automating the environment creation with `uv venv` and Python 3.13 ensures consistent, reproducible builds across all platforms without manual configuration.

Does uv venv support editable installs for local Python packages?▼

Yes, uv supports editable installs for local packages. After creating the `.venv` with `uv venv --python 3.13`, you can use `uv pip install` with editable flags to standardize local package development.

Why create a .venv at the project root instead of a global Python environment?▼

Creating a `.venv` at the project root isolates dependencies and ensures reproducible Python environments. Using uv and Python 3.13 standardizes the setup, preventing version conflicts across local development and CI pipelines.