Skip to content

Support pinned requirements files in uv download - #878

Draft
zaniebot wants to merge 9 commits into
zb/uv-download-packedfrom
zb/uv-download-requirements-files
Draft

zaniebot wants to merge 9 commits into
zb/uv-download-packedfrom
zb/uv-download-requirements-files

Conversation

@zaniebot

Copy link
Copy Markdown
Collaborator

Stacked on #875.

Add uv download -r requirements.txt for workflows that already have a compiled requirements manifest instead of a uv.lock. Registry requirements must be exact == pins; direct archive URLs and local archives are also accepted. The command downloads all matching platform distributions and retains every listed marker alternative without resolving dependencies, expanding extras, creating an environment, or building packages.

Reuse the requirements parser for repeated -r inputs, nested includes, stdin, index options, and --find-links. Requirement hashes constrain which registry artifacts may enter the packed cache; hashes on a direct URL must all match that archive, including any URL-fragment hashes. --require-hashes in the input is enforced, and cached bytes are checked against the active requirement hashes on reuse.

The archives use the same packed cache and offline read paths as the lockfile command. Constraints, version ranges, Git sources, and source trees are rejected rather than interpreted as a resolution request. The manifest must list its dependencies explicitly, including any build dependencies needed for a later offline build.

@zaniebot
zaniebot force-pushed the zb/uv-download-requirements-files branch from 0835d1e to 86590fa Compare August 26, 2026 17:57
@astral-automations-bot astral-automations-bot Bot added enhancement New feature or request preview Experimental behavior labels Aug 28, 2026
@zaniebot zaniebot added priority:3 Normal: useful features, documentation, usability, or routine efficiency improvements. size:4 Complex: architectural or security-sensitive work requiring broad or cross-repository context. risk:3 Credible risk of meaningful incorrect behavior or regression; bounded or recoverable. labels Sep 9, 2026
@astral-automations-bot
astral-automations-bot Bot force-pushed the zb/uv-download-packed branch 2 times, most recently from a549bcc to c4e9b61 Compare September 16, 2026 12:17
@astral-automations-bot
astral-automations-bot Bot force-pushed the zb/uv-download-packed branch 2 times, most recently from 7039897 to f4d6f09 Compare September 23, 2026 14:53
@astral-automations-bot
astral-automations-bot Bot force-pushed the zb/uv-download-packed branch 3 times, most recently from bdc7dae to 8e18488 Compare October 3, 2026 00:35
@zaniebot zaniebot added the build:skip-release Disable building release binaries for a pull request label Oct 7, 2026
@astral-automations-bot
astral-automations-bot Bot force-pushed the zb/uv-download-packed branch 4 times, most recently from 9dfdd56 to 8509388 Compare October 9, 2026 15:53
@astral-automations-bot
astral-automations-bot Bot force-pushed the zb/uv-download-packed branch 2 times, most recently from c7c6f7b to 8540f0f Compare October 9, 2026 19:34

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

build:skip-release Disable building release binaries for a pull request 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:4 Complex: architectural or security-sensitive work requiring broad or cross-repository context.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants