Skip to content

Commit 9dfbb7d

Browse files
committed
backup: migrate to uv shebang, remove poetry support
1 parent 02b548e commit 9dfbb7d

File tree

5 files changed

+20
-1553
lines changed

5 files changed

+20
-1553
lines changed

backup/README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,15 @@ Related info about backup solutions: https://github.com/ElementsProject/lightnin
1010

1111
## Installation
1212

13-
There are some Python dependencies. You can install them using `poetry`:
13+
You need [uv](https://docs.astral.sh/uv/getting-started/installation/) to run this
14+
plugin like a binary. After `uv` is installed you can simply run
1415

15-
```bash
16-
poetry install
1716
```
17+
lightning-cli plugin start /path/to/backup.py
18+
```
19+
20+
For general plugin installation instructions see the repos main
21+
[README.md](https://github.com/lightningd/plugins/blob/master/README.md#Installation)
1822

1923

2024
## Setup

backup/backup.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1-
#!/usr/bin/env python3
1+
#!/usr/bin/env -S uv run --script
2+
3+
# /// script
4+
# requires-python = ">=3.9.2"
5+
# dependencies = [
6+
# "pyln-client>=25.2.2",
7+
# "click>=8.0.4",
8+
# "psutil>=5.9.4",
9+
# "flask>=2.2",
10+
# "werkzeug<4",
11+
# ]
12+
# ///
13+
214
from pyln.client import Plugin
315
import json
416
import logging

0 commit comments

Comments
 (0)