Skip to content

Commit 457c51c

Browse files
committed
persistent-channels: migrate to uv shebang
1 parent c177c3a commit 457c51c

File tree

5 files changed

+1543
-2
lines changed

5 files changed

+1543
-2
lines changed

persistent-channels/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# Installation
2+
3+
You need [uv](https://docs.astral.sh/uv/getting-started/installation/) to run this
4+
plugin like a binary. After `uv` is installed you can simply run
5+
6+
```
7+
lightning-cli plugin start /path/to/persistent-channels.py
8+
```
9+
10+
For general plugin installation instructions see the repos main
11+
[README.md](https://github.com/lightningd/plugins/blob/master/README.md#Installation)
12+
113
# Persistent Channels plugin
214

315
`lightningd` automatically tracks channels internally and will make

persistent-channels/persistent-channels.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
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+
# ]
8+
# ///
9+
210
from pyln.client import Plugin, RpcError
311
from threading import Timer
412
import os

persistent-channels/pyproject.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[project]
2+
name = "persistent-channels"
3+
version = "0.1.0"
4+
description = "Describe a number of channels you'd like to have open at any time"
5+
readme = "README.md"
6+
requires-python = ">=3.9.2"
7+
8+
dependencies = ["pyln-client>=24.11"]
9+
10+
[dependency-groups]
11+
dev = [
12+
"pytest>=7.4,<9",
13+
"pytest-xdist>=3.7,<4",
14+
"pytest-timeout>=2.4,<3",
15+
"pyln-testing>=24.11.1",
16+
"pyln-client>=24.11.1",
17+
"pyln-proto>=24.11.1",
18+
]

persistent-channels/requirements.txt

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

0 commit comments

Comments
 (0)