Skip to content

Commit e798f0d

Browse files
committed
monitor: migrate to uv shebang
1 parent 02b548e commit e798f0d

File tree

4 files changed

+1530
-2
lines changed

4 files changed

+1530
-2
lines changed

monitor/monitor.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
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>=24.11",
7+
# "packaging>=24.1"
8+
# ]
9+
# ///
10+
211
"""
312
This is a quick hack and adapted plugin from the summary.py plugin (orinigally written by Rusty Russell
413
This one is adapted by Rene Pickhardt and aims to help you identify inactive channels quickly

monitor/pyproject.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[project]
2+
name = "monitor"
3+
version = "0.1.0"
4+
description = "Monitors the health of your peers and helps you to decide if you might want to close a channel"
5+
readme = "README.md"
6+
requires-python = ">=3.9.2"
7+
8+
[dependency-groups]
9+
dev = [
10+
"pytest>=7.4,<9",
11+
"pytest-xdist>=3.7,<4",
12+
"pytest-timeout>=2.4,<3",
13+
"pyln-testing>=24.11.1",
14+
"pyln-client>=24.11.1",
15+
"pyln-proto>=24.11.1",
16+
]

monitor/requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)