• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pantsbuild / pants / 23805124382
93%

Build:
DEFAULT BRANCH: main
Ran 31 Mar 2026 03:34PM UTC
Jobs 12
Files 1733
Run time 5min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

31 Mar 2026 03:19PM UTC coverage: 92.903% (-0.02%) from 92.918%
23805124382

push

github

web-flow
An experimental uv-based PEX builder (#23197)

Add an experimental `[python].pex_builder` option that allows using
[uv](https://github.com/astral-sh/uv) to install dependencies when
building PEX files via `pants package`.

When set to `"uv"`, Pants:
1. Downloads the `uv` binary (as an `ExternalTool`).
2. Creates a virtual environment with `uv venv`.
3. Installs dependencies with `uv pip install`.
4. Passes the pre-populated venv to PEX via `--venv-repository`.

When a PEX-native lockfile is available, uv installs the exact pinned
versions with `--no-deps`, preserving reproducibility. Otherwise it
falls back to transitive resolution from requirement strings.

Builds that cannot use uv (internal-only, cross-platform, no local
interpreter) silently fall back to the default pip path.

## Benchmark

Raw `pip install` vs `uv pip install` for 11 packages (requests, boto3,
cryptography, aiohttp, sqlalchemy, pillow, etc.) measured with
[hyperfine](https://github.com/sharkdp/hyperfine):

| Condition | pip | uv | Speedup |
|-----------|-----|-----|---------|
| Cold cache | 6.3s | 4.1s | **1.6x faster** |
| Warm cache | 6.9s | 0.14s | **51x faster** |

Within Pants, the end-to-end improvement is smaller because scheduler
and bootstrap overhead dominates, but the dependency installation step
itself is significantly faster — especially with warm caches on
repeated builds.

## LLM Disclosure

Code was written by the author. Claude was used for code review,
catching edge cases, and verifying test coverage.

122 of 138 new or added lines in 5 files covered. (88.41%)

9 existing lines in 1 file now uncovered.

91642 of 98643 relevant lines covered (92.9%)

4.05 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
16
94.93
-2.38% src/python/pants/backend/python/util_rules/pex.py

Uncovered Existing Lines

Lines Coverage ∆ File
9
94.74
-3.16% src/python/pants/core/goals/lint_test.py
Jobs
ID Job ID Ran Files Coverage
1 test_python_macos14_arm64 - 23805124382.1 31 Mar 2026 03:52PM UTC 1173
52.43
GitHub Action Run
2 test_python_linux_arm64 - 23805124382.2 31 Mar 2026 03:37PM UTC 1173
52.43
GitHub Action Run
3 test_python_linux_x86_64_8/10 - 23805124382.3 31 Mar 2026 03:42PM UTC 1191
53.65
GitHub Action Run
4 test_python_linux_x86_64_7/10 - 23805124382.4 31 Mar 2026 03:44PM UTC 1195
51.33
GitHub Action Run
5 test_python_linux_x86_64_0/10 - 23805124382.5 31 Mar 2026 03:39PM UTC 1209
56.87
GitHub Action Run
6 test_python_linux_x86_64_4/10 - 23805124382.6 31 Mar 2026 03:40PM UTC 1224
59.45
GitHub Action Run
7 test_python_linux_x86_64_1/10 - 23805124382.7 31 Mar 2026 03:36PM UTC 1188
49.26
GitHub Action Run
8 test_python_linux_x86_64_2/10 - 23805124382.8 31 Mar 2026 03:35PM UTC 1191
58.7
GitHub Action Run
9 test_python_linux_x86_64_5/10 - 23805124382.9 31 Mar 2026 03:35PM UTC 1204
59.77
GitHub Action Run
10 test_python_linux_x86_64_6/10 - 23805124382.10 31 Mar 2026 03:34PM UTC 1185
49.61
GitHub Action Run
11 test_python_linux_x86_64_9/10 - 23805124382.11 31 Mar 2026 03:35PM UTC 1200
53.96
GitHub Action Run
12 test_python_linux_x86_64_3/10 - 23805124382.12 31 Mar 2026 03:40PM UTC 1189
53.9
GitHub Action Run
Source Files on build 23805124382
  • Tree
  • List 1733
  • Changed 8
  • Source Changed 4
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23805124382
  • 6044c3f8 on github
  • Prev Build on main (#23804678917)
  • Next Build on main (#23806493354)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc