Optimizing Python + Docker deploys using Pants

Pants can build a PEX file, an executable zip file containing your Python code and all transitive dependencies. Deploying your application is as simple as copying the file. This post elaborates on how to get best performance out of the powerful combination of Pants+PEX+Docker.…

Better CI/CD caching with Pants

Pants is designed to utilize fine-grained caching to speed up builds. Users are often interested in how this interacts with CI providers' own caching features, which are necessary since CI jobs typically run in fresh containers, with no direct access to previous state. In particular, we get questions about how…

Multiple lockfiles in Python repos

Rather than forcing global or per-project lockfiles, Pants uses a hybrid approach...This allows a repo to operate with the minimum number of lockfiles required to support their conflicting library versions, without necessarily going to the costly extreme of per-project lockfiles.…

Talk Notes: PyCon US 2022 – Hermetic Environments in Pantsbuild

On Sunday 1 May 2022, Pants Maintainer, Christopher Neugebauer gave a talk about Pantsbuild's hermetic environments. Here are some useful resources: Example Python repo — the codebase where you can run the demos from the start of the talk.Stu Hood – Faster incremental builds with Speculation (Build Meetup 2021) — this talk…