Skip to content

Commit f69279e

Browse files
daywalker90cdecker
authored andcommitted
prometheus: remove poetry support
1 parent 02b548e commit f69279e

File tree

4 files changed

+6
-1526
lines changed

4 files changed

+6
-1526
lines changed

prometheus/README.md

Lines changed: 5 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -18,44 +18,12 @@ Exposed variables include:
1818
total sum (may be inaccurate during channel resolution).
1919

2020
## Installation
21-
### Using uv (recommended)
22-
* Install `uv` and make the plugin executable
23-
```
24-
pip install --upgrade pip uv
25-
chmod a+x prometheus.py
26-
```
27-
Then you can add _just that file_ to your Core Lightning plugins directory. The plugin should start automatically and its dependencies will be installed on-the-fly when the node comes up.
28-
29-
### Using poetry (legacy)
30-
If you don't want to use `uv`, you can still use `poetry`. You need to update the shebang line to point the OS at the correct interpreter (`python3`) though:
31-
```
32-
sed -i 's#-S uv run --script#python3#' prometheus.py
33-
```
21+
You need [uv](https://docs.astral.sh/uv/getting-started/installation/) to run this
22+
plugin like a binary. After `uv` is installed you can simply run
3423

35-
Then install `poetry` and build the package:
3624
```
37-
pip install --upgrade pip poetry
38-
poetry install --only main
25+
lightning-cli plugin start /path/to/prometheus.py
3926
```
4027

41-
This is an example snippet for installing the plugin's dependencies and cleaning up afterwards:
42-
```
43-
PLUGIN_PATH=/opt/plugins
44-
RAW_GH_PLUGINS=https://raw.githubusercontent.com/lightningd/plugins/master
45-
mkdir -p ${PLUGIN_PATH}
46-
47-
pip3 install --break-system-packages --upgrade pip wheel poetry
48-
49-
# Add custom plugins (prometheus)
50-
## This replaces the shebang line that by default uses uv for package management
51-
(cd $PLUGIN_PATH; wget -q $RAW_GH_PLUGINS/prometheus/README.md \
52-
&& wget -q $RAW_GH_PLUGINS/prometheus/pyproject.toml \
53-
&& wget -q $RAW_GH_PLUGINS/prometheus/poetry.lock \
54-
&& wget -q $RAW_GH_PLUGINS/prometheus/prometheus.py \
55-
&& sed -i 's#-S uv run --script#python3#' prometheus.py \
56-
&& poetry config virtualenvs.create false \
57-
&& PIP_BREAK_SYSTEM_PACKAGES=1 poetry install --only main \
58-
&& rm -f README.md pyproject.toml poetry.lock)
59-
60-
chmod a+x $PLUGIN_PATH/*
61-
```
28+
For general plugin installation instructions see the repos main
29+
[README.md](https://github.com/lightningd/plugins/blob/master/README.md#Installation)

0 commit comments

Comments
 (0)