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

pantsbuild / pants / 24420161240

14 Apr 2026 08:01PM UTC coverage: 92.923% (+0.01%) from 92.91%
24420161240

push

github

web-flow
Fix uv PEX builder to use pex3 lock export (#23227)

When the uv PEX builder extracts pinned requirements from
a PEX-native lockfile, it previously parsed the internal JSON
format directly. This broke VCS and direct URL requirements
(formatted as name==version instead of name @ url), and the
PEX maintainer has warned that this internal format is
unsupported and may change without notice.

This PR replaces JSON parsing with `pex3 lock export --format pep-751`
via PexCliProcess. The exported pylock.toml is passed
directly to uv pip install -r, handling VCS refs, direct URLs,
extras, and platform filtering out of the box.

38 of 39 new or added lines in 3 files covered. (97.44%)

1 existing line in 1 file now uncovered.

91660 of 98641 relevant lines covered (92.92%)

4.04 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

96.62
/src/python/pants/backend/python/util_rules/pex.py


Source Not Available

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