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

オープン
#2,195 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
20/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python, rust
領域
tooling

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Rust
スター
9
フォーク
2
平均マージ
1日 8時間
マージ済み PR(30日)
309

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

SocketDev/socket-patch のほかの issue

SocketDev/socket-patch の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。