persistent-channels: migrate to uv shebang

This commit is contained in:
daywalker90 2025-12-01 15:15:36 +01:00
parent c177c3a3f2
commit 457c51cb7d
5 changed files with 1543 additions and 2 deletions

View file

@ -1,3 +1,15 @@
# Installation
You need [uv](https://docs.astral.sh/uv/getting-started/installation/) to run this
plugin like a binary. After `uv` is installed you can simply run
```
lightning-cli plugin start /path/to/persistent-channels.py
```
For general plugin installation instructions see the repos main
[README.md](https://github.com/lightningd/plugins/blob/master/README.md#Installation)
# Persistent Channels plugin
`lightningd` automatically tracks channels internally and will make

View file

@ -1,4 +1,12 @@
#!/usr/bin/env python3
#!/usr/bin/env -S uv run --script
# /// script
# requires-python = ">=3.9.2"
# dependencies = [
# "pyln-client>=24.11"
# ]
# ///
from pyln.client import Plugin, RpcError
from threading import Timer
import os

View file

@ -0,0 +1,18 @@
[project]
name = "persistent-channels"
version = "0.1.0"
description = "Describe a number of channels you'd like to have open at any time"
readme = "README.md"
requires-python = ">=3.9.2"
dependencies = ["pyln-client>=24.11"]
[dependency-groups]
dev = [
"pytest>=7.4,<9",
"pytest-xdist>=3.7,<4",
"pytest-timeout>=2.4,<3",
"pyln-testing>=24.11.1",
"pyln-client>=24.11.1",
"pyln-proto>=24.11.1",
]

View file

@ -1 +0,0 @@
pyln-client>=0.7.3

1504
persistent-channels/uv.lock generated Normal file

File diff suppressed because it is too large Load diff