bytecodealliance / bytecodealliance/componentize-py

Add support for .pth files

オープン
#181 コメント 7 件 リアクション 0 件 担当者 0 名 GitHub で見る
good first issue
主要言語
Rust
スター
277
フォーク
51
平均マージ
12時間 10分
マージ済み PR(30日)
10

説明

> A path configuration file is a file whose name has the form **name.pth** and exists in one of the four directories mentioned above; its contents are additional items (one per line) to be added to sys.path. Non-existing items are never added to sys.path, and no check is made that the item refers to a directory rather than a file. No item is added to sys.path more than once. Blank lines and lines beginning with # are skipped. Lines starting with import (followed by space or tab) are executed.

https://docs.python.org/3/library/site.html

.pth files are often used by python packaging systems (like uv, etc...) to make working on the current project more elegant, by pointing from the .venv/ path to the project path.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

リンクされている Python の site ドキュメントと、componentize-py における .venv/ パスの処理から始めます。要求された動作を、パスエントリ、コメント、空行、重複エントリ、存在しないパス、import 行に関する .pth のルールと比較します。対応する .pth ファイルが、無効なエントリや重複エントリを追加せずに、有効なプロジェクトパスを sys.path に追加できれば完了です。

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

評価

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

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

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