Skip to content

Align packed distributions with cache conventions - #885

Merged
zanieb merged 3 commits into
zb/uv-download-packedfrom
zb/uv-download-cache-layout
Aug 27, 2026
Merged

zanieb merged 3 commits into
zb/uv-download-packedfrom
zb/uv-download-cache-layout

Conversation

@zaniebot

@zaniebot zaniebot commented Aug 26, 2026 •

Copy link
Copy Markdown
Collaborator

Stacked on #875.

Store packed distributions under packed-v1 using the same source and normalized-package shards as the wheel cache. Within each package shard, archive payloads and their pointers are flat siblings:

packed-v1/
├── pypi/<package>/
│   ├── <sha256>
│   ├── <wheel-key>.http
│   └── <version>.<sdist-extension>.http
├── index/<index-digest>/<package>/
│   ├── <sha256>
│   └── <artifact-key>.http
├── url/<url-digest>/<package>/
│   ├── <sha256>
│   └── <artifact-key>.http
└── path/<path-digest>/<package>/
    ├── <sha256>
    └── <artifact-key>.rev

The SHA-256-named file is the original packed distribution. .http entries retain the HTTP cache policy and point to that payload; local files use timestamped .rev pointers. This aligns source separation, lookup, and package cleanup with existing cache conventions without adopting the prepared wheel cache's unpacked representation.

Distribution readers opt into packed fallback explicitly, and responses that prohibit caching fail uv download. Single-current-revision lookup remains unchanged; selecting older revisions and using packed copies of missing local sources remain separate follow-ups.

@zanieb
zanieb marked this pull request as ready for review August 27, 2026 13:57
@zanieb
zanieb merged commit 256188c into zb/uv-download-packed Aug 27, 2026
4 checks passed
astral-automations-bot Bot pushed a commit that referenced this pull request Aug 27, 2026
* Align packed distributions with cache conventions

* Fix cache layout CI failures

* Document packed cache layout

---------

Co-authored-by: Zanie Blue <[email protected]>
@astral-automations-bot astral-automations-bot Bot added enhancement New feature or request preview Experimental behavior labels Aug 28, 2026
astral-automations-bot Bot pushed a commit that referenced this pull request Sep 11, 2026
* Align packed distributions with cache conventions

* Fix cache layout CI failures

* Document packed cache layout

---------

Co-authored-by: Zanie Blue <[email protected]>
astral-automations-bot Bot pushed a commit that referenced this pull request Sep 16, 2026
* Align packed distributions with cache conventions

* Fix cache layout CI failures

* Document packed cache layout

---------

Co-authored-by: Zanie Blue <[email protected]>
astral-automations-bot Bot pushed a commit that referenced this pull request Sep 20, 2026
* Align packed distributions with cache conventions

* Fix cache layout CI failures

* Document packed cache layout

---------

Co-authored-by: Zanie Blue <[email protected]>
astral-automations-bot Bot pushed a commit that referenced this pull request Sep 23, 2026
* Align packed distributions with cache conventions

* Fix cache layout CI failures

* Document packed cache layout

---------

Co-authored-by: Zanie Blue <[email protected]>
astral-automations-bot Bot pushed a commit that referenced this pull request Sep 30, 2026
* Align packed distributions with cache conventions

* Fix cache layout CI failures

* Document packed cache layout

---------

Co-authored-by: Zanie Blue <[email protected]>
astral-automations-bot Bot pushed a commit that referenced this pull request Oct 1, 2026
* Align packed distributions with cache conventions

* Fix cache layout CI failures

* Document packed cache layout

---------

Co-authored-by: Zanie Blue <[email protected]>
astral-automations-bot Bot pushed a commit that referenced this pull request Oct 3, 2026
* Align packed distributions with cache conventions

* Fix cache layout CI failures

* Document packed cache layout

---------

Co-authored-by: Zanie Blue <[email protected]>
astral-automations-bot Bot pushed a commit that referenced this pull request Oct 7, 2026
* Align packed distributions with cache conventions

* Fix cache layout CI failures

* Document packed cache layout

---------

Co-authored-by: Zanie Blue <[email protected]>
astral-automations-bot Bot pushed a commit that referenced this pull request Oct 7, 2026
* Align packed distributions with cache conventions

* Fix cache layout CI failures

* Document packed cache layout

---------

Co-authored-by: Zanie Blue <[email protected]>
astral-automations-bot Bot pushed a commit that referenced this pull request Oct 8, 2026
* Align packed distributions with cache conventions

* Fix cache layout CI failures

* Document packed cache layout

---------

Co-authored-by: Zanie Blue <[email protected]>
astral-automations-bot Bot pushed a commit that referenced this pull request Oct 9, 2026
* Align packed distributions with cache conventions

* Fix cache layout CI failures

* Document packed cache layout

---------

Co-authored-by: Zanie Blue <[email protected]>
astral-automations-bot Bot pushed a commit that referenced this pull request Oct 9, 2026
* Align packed distributions with cache conventions

* Fix cache layout CI failures

* Document packed cache layout

---------

Co-authored-by: Zanie Blue <[email protected]>
astral-automations-bot Bot pushed a commit that referenced this pull request Oct 9, 2026
* Align packed distributions with cache conventions

* Fix cache layout CI failures

* Document packed cache layout

---------

Co-authored-by: Zanie Blue <[email protected]>
astral-automations-bot Bot pushed a commit that referenced this pull request Oct 21, 2026
* Align packed distributions with cache conventions

* Fix cache layout CI failures

* Document packed cache layout

---------

Co-authored-by: Zanie Blue <[email protected]>
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants