Skip to content

Instantly share code, notes, and snippets.

@yamanahlawat
yamanahlawat / upgrade_pyproject.py
Last active November 2, 2025 22:35
Upgrade all packages using uv
"""
Script to automatically update uv.lock and then update pyproject.toml dependencies.
Prerequisites:
1. Python 3.11+ (for tomllib)
2. tomli-w package (`pip install tomli-w`)
3. uv installed and available in PATH
Usage:
Run this script: `python upgrade_pyproject.py`