Skip to content

Commit 56bd4f0

Browse files
committed
donations: add uv support
1 parent 02b548e commit 56bd4f0

File tree

4 files changed

+1625
-13
lines changed

4 files changed

+1625
-13
lines changed

donations/donations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def donation_form():
113113

114114

115115
def worker(port):
116-
app = Flask(__name__)
116+
app = Flask("donations")
117117
# FIXME: use hexlified hsm secret or something else
118118
app.config["SECRET_KEY"] = "you-will-never-guess-this"
119119
app.add_url_rule("/donation", "donation", donation_form, methods=["GET", "POST"])

donations/poetry.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

donations/pyproject.toml

Lines changed: 33 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,49 @@
1-
[tool.poetry]
1+
[project]
22
name = "cln-plugins-donations"
33
version = "0.2.0"
4-
description = ""
5-
authors = ["Christian Decker <decker[email protected]>"]
4+
description = "Start one or more webservers for a donation page where visitors can let CLN generate invoices"
5+
authors = [{ name = "Christian Decker", email = "<decker@blockstream.io>" }]
66
license = "MIT"
77
readme = "README.md"
8+
requires-python = ">=3.9.2"
9+
dependencies = [
10+
"qrcode>=7.4.2",
11+
"flask>=2.3.3",
12+
"pyln-client>=24.11",
13+
"flask-bootstrap>=3.3.7.1",
14+
"flask-wtf>=1.2.1",
15+
"werkzeug>=3.0.6",
16+
"wtforms>=3.1.2",
17+
]
18+
19+
[dependency-groups]
20+
dev = [
21+
"pytest>=7.4,<9",
22+
"pytest-xdist>=3.7,<4",
23+
"pytest-timeout>=2.4,<3",
24+
"pyln-testing>=24.11",
25+
"pyln-client>=24.11",
26+
"pyln-proto>=24.11",
27+
]
28+
29+
[tool.uv]
30+
package = false
31+
32+
[tool.poetry]
33+
package-mode = false
834

935
[tool.poetry.dependencies]
10-
python = "^3.9"
36+
python = "^3.9.2"
1137
qrcode = "7.4.2"
1238
flask = "2.3.3"
13-
pyln-client = ">=24.2"
39+
pyln-client = ">=24.11"
1440
flask-bootstrap = "^3.3.7.1"
1541
flask-wtf = "1.2.1"
1642
werkzeug = "3.0.6"
1743
wtforms = "3.1.2"
1844

19-
[tool.poetry.dev-dependencies]
20-
pyln-testing = ">=24.2"
45+
[tool.poetry.group.dev.dependencies]
46+
pyln-testing = ">=24.11"
2147

2248
[build-system]
2349
requires = ["poetry-core"]

0 commit comments

Comments
 (0)