--notes: only send names when a gap is on one of the tracker's platforms

オープン 初心者向け
#263 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
86/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
cli, testing

調査の方向性

src/wheelgap/cli.py の notes_eligible から始め、gap の対象が notes.PLATFORMS とどのように照合されるか確認してください。tests/test_notes.py では、名前を送信せずヒントも表示しない iOS のみの gap と、引き続き名前を送信してヒントを表示する linux-x86_64 の gap を対象にしてください。また、レガシーソース https://pypi.org/simple を使う poetry.lock のエントリについて、notes.may_send のケースも追加してください。このエントリは tracker には送信せず、--conda-forge の場合は送信する必要があります。

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

説明

good first issue

The tracker only scans nine platforms (notes.PLATFORMS). With -t ios-arm64 or -t linux-riscv64, no note can ever match, but --notes still sends the package names to wheelgap.github.io.

What to do

  • In src/wheelgap/cli.py (notes_eligible), require at least one gap target whose platform is in notes.PLATFORMS.
  • That also stops the "add --notes" hint for runs where it can't help.
  • Tests in tests/test_notes.py: an iOS-only gap sends nothing and prints no hint; a gap on linux-x86_64 still does.
  • While there, add the missing test for notes.may_send's last line: a poetry.lock entry with a legacy https://pypi.org/simple source, looked up online, is not sent to the tracker (it is sent for --conda-forge).
主要言語
Python
スター
0
フォーク
1
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

patrickballard/wheelgap のほかの issue

patrickballard/wheelgap の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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