Skip to content

Commit 358aad8

Browse files
pytest: test python plugin installation via uv
1 parent 8eee614 commit 358aad8

File tree

6 files changed

+247
-0
lines changed

6 files changed

+247
-0
lines changed

tests/data/recklessrepo/lightningd/testpluguv/README.md

Whitespace-only changes.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[project]
2+
name = "testpluguv"
3+
version = "0.1.0"
4+
description = "Add your description here"
5+
readme = "README.md"
6+
requires-python = ">=3.13"
7+
dependencies = [
8+
"pyln-client>=24.4",
9+
]
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/usr/bin/env python3
2+
from pyln.client import Plugin
3+
4+
plugin = Plugin()
5+
6+
__version__ = 'v1'
7+
8+
9+
@plugin.init()
10+
def init(options, configuration, plugin, **kwargs):
11+
plugin.log("testpluguv initialized")
12+
13+
14+
@plugin.method("uvplugintest")
15+
def uvplugintest(plugin):
16+
return "I live."
17+
18+
19+
@plugin.method("getuvpluginversion")
20+
def getuvpluginversion(plugin):
21+
"to test commit/tag checkout"
22+
return __version__
23+
24+
25+
plugin.run()

0 commit comments

Comments
 (0)