Pants: Cargo for Python
summary
Pants is an orchestration build system for Python that runs linters and test runners like pytest, mypy and black in sandboxed processes, generates PEX-based pinned lockfiles, and uses dependency inference to avoid manual metadata. A Rust execution engine plus a long‑running daemon enables fine‑grained local and remote cache hits and concurrency; teams report CI shrinking from ~60 minutes to ~5 minutes. Plugins (Python, Java, Go, Docker) implement rules and the system returns cached outputs instead of rerunning tools.
AI-written summary · about
chapters (14)
- 0:00Introduction
- 0:33Speaker background
- 1:33Introduction to Rust
- 4:24Cargo for Rust
- 10:59Challenges of scaling
- 13:29Cargo dependency management
- 19:28Language ecosystem comparison
- 22:47The chaotic Python ecosystem
- 24:31Introducing Pants
- 27:13Pants for monorepos
- 30:13Pants demonstration
- 34:43Pants performance features
- 38:17Pants dependency management
- 39:55Architecture and conclusion
