-
Notifications
You must be signed in to change notification settings - Fork 823
Open
Description
Hey.
I stumbled over the question what to use when one specifies the Prometheus Client as a dependency=
in pyproject.toml
?
- you guys seem to use
prometheus_client
(underscore)
https://github.com/prometheus/client_python/blob/46eae7bae88f76951f7246d9f359f2dd5eeff110/pyproject.toml#L6C9-L6C26 - PyPi seems to use
prometheus-client
(i.e. when one enters the URL with underscore, it forwards to the one with hyphen)
The actual package build/installation seems to work with both names.
For me the whole Python packaging standard are like big mess ^^... but, if I understand correctly the following possibly means:
The name should be lowercased with all runs of the characters
.
,-
, or_
replaced with a single-
character.
that the name should be with hypen.
So maybe that should be changed in pyproject.toml
and many other places like e.g.:
Line 8 in 46eae7b
pip install prometheus-client Line 49 in 46eae7b
prometheus_client = ['py.typed'] Line 20 in 46eae7b
* [PyPI](https://pypi.python.org/pypi/prometheus_client)
and perhaps more in tox.ini
and mypy.ini
?
Cheers,
Chris.
Metadata
Metadata
Assignees
Labels
No labels