Skip to content

Package project locks in PEP 517 builds - #22595

Closed
konstin wants to merge 2 commits into
konsti/build-packaged-lockfrom
konsti/build-packaged-lock-pep517
Closed

konstin wants to merge 2 commits into
konsti/build-packaged-lockfrom
konsti/build-packaged-lock-pep517

Conversation

@konstin

@konstin konstin commented Oct 15, 2026

Copy link
Copy Markdown
Member

uv build can package a project's runtime lock when building through PEP 517, extending #22067 beyond the bundled uv_build fast path. Automatic export also works when uv_build runs through PEP 517; other backends require tool.uv.export-lock = true or UV_EXPORT_LOCK=true.

The frontend adds the lock to the completed source distribution or wheel and updates the wheel's RECORD. A wheel rebuilt from a source distribution carries its packaged lock after uv verifies the source distribution's metadata and lock.

@konstin
konstin force-pushed the konsti/build-packaged-lock-pep517 branch from 8f45fa7 to c079a06 Compare October 15, 2026 12:42
@konstin
konstin force-pushed the konsti/build-packaged-lock branch from 56d90c9 to 0526f5f Compare October 15, 2026 12:42
@codspeed

codspeed Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

1 warning

⚠️ 7 benchmarks are dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

✅ 89 untouched benchmarks
⏩ 84 skipped benchmarks1


Comparing konsti/build-packaged-lock-pep517 (ecc944c) with konsti/build-packaged-lock (c504e99)

Open in CodSpeed

Footnotes

  1. 84 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@konstin
konstin force-pushed the konsti/build-packaged-lock branch from 0526f5f to d40a366 Compare October 15, 2026 13:35
@konstin
konstin force-pushed the konsti/build-packaged-lock-pep517 branch from c079a06 to 3ef6087 Compare October 15, 2026 13:35
@konstin
konstin force-pushed the konsti/build-packaged-lock-pep517 branch from 3ef6087 to b75dd9a Compare October 15, 2026 13:36
@konstin
konstin force-pushed the konsti/build-packaged-lock branch from d40a366 to b73eb4e Compare October 15, 2026 13:36
@konstin
konstin force-pushed the konsti/build-packaged-lock branch from b73eb4e to 0ba16ed Compare October 19, 2026 13:23
@konstin
konstin force-pushed the konsti/build-packaged-lock-pep517 branch from b75dd9a to 536a856 Compare October 19, 2026 13:23
@konstin
konstin force-pushed the konsti/build-packaged-lock branch from 0ba16ed to c504e99 Compare November 17, 2026 08:23
@konstin
konstin force-pushed the konsti/build-packaged-lock-pep517 branch from 536a856 to 7028dab Compare November 17, 2026 08:23

This branch was previously deployed

1 inactive deployment
automations — ecc944c1 Deployed Nov 17, 2026 by konstin via check | crates / cargo-vet in . #54036
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant