Hosted and vendored modes cannot deliver a patched release that publishes only platform wheels: no way to consume one patched wheel per platform tag

Offen
#2,195 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
20/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
python, rust
Bereich
tooling

Rechercherichtung

Start at crates/socket-patch-core/src/patch/redirect/mod.rs:753 and crates/socket-patch-core/src/vendor/pypi.rs:2139 to see where hosted withholds the redirect and vendored pins one platform. Read the lock-entry model and how upstream PyPI wheel sets are parsed, then trace how a patched wheel reference is built. Done means a hosted or vendored PyPI reference can carry one patched wheel per upstream tag with its own hash, the lock entry rewrites to that full set, and delivery still withholds when coverage is incomplete.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

agent:triaged enhancement pm:pip priority:p1

Summary

A PyPI release that publishes only platform wheels cannot be delivered patched in hosted or vendored mode:

  • hosted withholds the redirect with redirect_pypi_platform_wheel (crates/socket-patch-core/src/patch/redirect/mod.rs:753);
  • vendored pins the lock to one platform and reports vendor_platform_locked (crates/socket-patch-core/src/vendor/pypi.rs:2139).

Both behaviours are correct for a single patched wheel (#701, #932 and #1048 fixed the silent single-platform pin). The gap is that there is no way to consume a SET of patched wheels for one release.

Why this matters

Packages with compiled extensions often publish no universal wheel at all (pillow: 87 files in 12.3.0, none -none-any). When the patch service can provide a patched wheel for each platform tag of the release, a cross-platform lock entry could list all of them, the way the upstream lock entry does.

Suggested direction

Let a hosted or vendored PyPI reference carry one patched wheel per upstream wheel of the release (same tags, own hashes) and rewrite the lock entry to that full set. Withhold, as today, when the set does not cover every wheel the lock entry lists.

Vorherrschende Sprache
Rust
Sterne
9
Forks
2
Ø Merge
1 T. 8 Std.
Gemergte PRs (30 T.)
309

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus SocketDev/socket-patch

Alle Issues in SocketDev/socket-patch

Ähnliche Issues

Weitere Issues zu Rust

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.