Pants
目次
| 最初のコミット | 2011年3月16日 |
|---|---|
| v2 の公開 | 2020年10月27日 |
| 最新のリリース | 2.33.2(2026年11月1日) |
| 実装の言語 | Rust、Python |
| ライセンス | Apache License 2.0 |
| URL | pantsbuild.org |
Pants は、大きなリポジトリのためのビルドシステムである1。Python、Go、Java、Scala、Shell などを扱う。BUILD ファイルにターゲットを書くのは Bazel と同じだが、依存の多くはソースコードの import から推論する1。
歴史
最初のコミットは2011年3月16日で、John Sirois が「Initial commit of twitter-commons」として書いた2。Pants はもともと Twitter の社内の道具だった。最初の v1 は、Twitter、Foursquare、Square などで使われた3。
2020年10月27日、Pants は v2 を出した3。エンジンを Rust で、規則を型の付いた Python で書き直した大きな改修である。発表の記事は Benjy Weinberger が書いた3。開発は有志のコミュニティが担い、Toolchain などの会社が支えている1。
2026年は、2.33.0 が7月31日に、2.33.2 が11月1日に出た4。11月8日には 2.34.0a0 が出ている4。
依存の推論
Pants の特徴は、依存を推論することである1。Python の import や Go の import を読み、どのターゲットがどれに依存するかを自分で決める。開発者は、推論できない依存だけを BUILD ファイルに書けばよい。推論の結果は pants dependencies や pants peek で確かめられる5。
可視化
Pants は図を描く命令を持たない。pants dependencies と pants dependents が依存を一覧にし、pants peek がターゲットの中身を JSON で出す5。
関連項目
出典
-
Pants「Welcome to Pants!」。2026年11月9日に閲覧。 ↩ ↩2 ↩3 ↩4
-
John Sirois「Initial commit of twitter-commons」pantsbuild/pants、2011年3月16日。 ↩
-
Benjy Weinberger「Introducing Pants v2」Pants Blog、2020年10月27日。 ↩ ↩2 ↩3
-
「Releases · pantsbuild/pants」GitHub。2026年11月9日に閲覧。 ↩ ↩2
-
Pants「Inspecting dependency inference results」Pants Blog、2024年1月25日。 ↩ ↩2
最終更新