A Complete Guide to Modern Python Packaging: uv, pyproject.toml and PyPI
tdhopper · x · 2026-12-02
tdhopper has published a comprehensive guide to modern Python packaging on pydevtools.com, tackling why so many packaging tools exist.
Key coverage:
- Core concepts: project metadata and dependencies in pyproject.toml, wheels, PyPI, and the distinction between import packages and distribution packages
- Tool selection: start with uv as package manager, with guidance on when other tools fit
- Migration: moving requirements.txt to pyproject.toml and generating lockfiles in a uv project
- Publishing: building and releasing your first package to PyPI, plus using Trusted Publishing to automate releases from GitHub Actions without API tokens
More from coding & agent
- YouTube explainer breaks down how MCP actually works — S20091981 · 2026-12-02
- ty 1.0 demo: satisfies_all infers length-plus-integer constraints across predicates — charliermarsh · 2026-12-02
- Ruff author contrasts type inference: ty vs Mypy vs Pyright vs Pyrefly on one example — charliermarsh · 2026-12-02
- Danny Postma launches a landing-page course your coding agent takes with you — doooyle · 2026-12-02
- Claude models a Blender scene end-to-end via MCP and rebuilds Blade Runner street in UE5 — nptacek · 2026-12-02
- greenci: a pre-push hook that runs GitHub Actions locally and blocks failing pushes — EL4CTEO · 2026-12-02