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

Ouverte
#2,195 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
5/5
Temps estimé
Plus d'une semaine
Accessibilité débutants
20/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
Active
Stack technique
python, rust
Domaine
tooling

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
Rust
Étoiles
9
Forks
2
Merge moyen
1 j 8 h
PR mergées (30 j)
309

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de SocketDev/socket-patch

Toutes les issues de SocketDev/socket-patch

Issues similaires

Plus d'issues Rust

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.