prometheus / prometheus/client_python
installed package name doesnt match
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 4.4k
- Fork
- 876
- Merge medio
- 8g 4h
- PR unite (30g)
- 1
Descrizione
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
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia confrontando il nome della distribuzione utilizzato da pip con la directory di importazione/pacchetto mostrata nel report. Chiarisci quale nome è corretto per l’installazione e spiega la distinzione nella documentazione, quindi verifica l’impatto sull’automazione con controlli riproducibili tramite pip index e pip list.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- build-system, documentation
- Tipo di issue
- Documentazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 35/100