Skip to content

Add flat output directories to uv download - #879

Draft
zaniebot wants to merge 1 commit into
zb/uv-download-requirements-filesfrom
zb/uv-download-out-dir
Draft

zaniebot wants to merge 1 commit into
zb/uv-download-requirements-filesfrom
zb/uv-download-out-dir

Conversation

@zaniebot

@zaniebot zaniebot commented Aug 26, 2026 •

Copy link
Copy Markdown
Collaborator

Add --output-dir to uv download so archives from either uv.lock or pinned requirements files can be written to a user-selected directory instead of the packed cache. The directory uses a flat layout with the original wheel and source distribution filenames, which makes the result suitable for inspection, copying, or vendoring without exposing uv's internal cache structure.

Existing output files are verified against the available hashes and sizes before reuse. Conflicting filenames or damaged files fail explicitly, while --refresh downloads and replaces them. The packed cache remains the default because output directories are an export boundary and are not automatically consulted by later uv commands.

Stacked on #878.

@zaniebot
zaniebot force-pushed the zb/uv-download-out-dir branch from efdca2b to 17feefb Compare August 26, 2026 17:37
@zaniebot
zaniebot force-pushed the zb/uv-download-requirements-files branch from 0835d1e to 86590fa Compare August 26, 2026 17:57
@zaniebot
zaniebot force-pushed the zb/uv-download-out-dir branch from 17feefb to feee372 Compare August 26, 2026 18:00
@astral-automations-bot astral-automations-bot Bot added the enhancement New feature or request label Aug 28, 2026
@zaniebot zaniebot added priority:3 Normal: useful features, documentation, usability, or routine efficiency improvements. size:3 Substantial: interacting behaviors, difficult compatibility questions, or a careful migration. preview Experimental behavior risk:3 Credible risk of meaningful incorrect behavior or regression; bounded or recoverable. labels Sep 9, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request preview Experimental behavior priority:3 Normal: useful features, documentation, usability, or routine efficiency improvements. risk:3 Credible risk of meaningful incorrect behavior or regression; bounded or recoverable. size:3 Substantial: interacting behaviors, difficult compatibility questions, or a careful migration.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants