prometheus / prometheus/client_python
installed package name doesnt match
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 4.4k
- フォーク
- 876
- 平均マージ
- 8日 4時間
- マージ済み PR(30日)
- 1
説明
There appears to be some discrepancy between the pip package name and the name of the installed package
Both prometheus_client and prometheus-client appear to be valid names to install the package
python3 -m pip index versions prometheus-client
WARNING: pip index is currently an experimental command. It may be removed/changed in a future release without prior warning.
prometheus-client (0.20.0)
python3 -m pip index versions prometheus_client
WARNING: pip index is currently an experimental command. It may be removed/changed in a future release without prior warning.
prometheus_client (0.20.0)
but the actual installed package is named prometheus_client
prometheus_client 0.20.0
and the files on disk reflect that name
ll /usr/local/lib/python3.8/dist-packages
total 32
4096 Feb 27 10:26 ./
4096 Jun 27 2022 ../
4096 Feb 27 10:26 pip/
4096 Feb 27 10:26 pip-24.0.dist-info/
4096 Feb 27 10:26 prometheus_client/
4096 Feb 27 10:26 prometheus_client-0.20.0.dist-info/
All the documentation suggest using
pip install prometheus-client
but that name doesn't match what is output from pip list
which in my case causes problem for automation scripts as the name in the list of installed packages does not match the name of the package to be installed
which name is the correct one?
why does the package name not match the installed package name on disk or in pip list
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、pip が使用するディストリビューション名と、レポートに示されている import/package ディレクトリを比較します。インストールに正しい名前がどれかを明確にし、その違いをドキュメントで説明したうえで、再現可能な pip index と pip list のチェックにより自動化への影響を検証します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- build-system, documentation
- issue の種類
- ドキュメント
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100