Skip to content

Commit fb4756f

Browse files
committed
Switch Python CI workflow to use uv
Replace `actions/setup-python` with `astral-sh/setup-uv` and use `uv pip install --system` instead of `pip3 install` for test dependencies. Co-Authored-By: HAL 9000
1 parent 0da793e commit fb4756f

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/python.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,8 @@ jobs:
1717
- name: Checkout repository
1818
uses: actions/checkout@v4
1919

20-
- name: Setup Python
21-
uses: actions/setup-python@v4
22-
with:
23-
python-version: '3.10'
20+
- name: Install uv
21+
uses: astral-sh/setup-uv@v7
2422

2523
- name: Generate Python bindings
2624
run: ./scripts/uniffi_bindgen_generate_python.sh
@@ -29,8 +27,7 @@ jobs:
2927
run: docker compose up -d
3028

3129
- name: Install testing prerequisites
32-
run: |
33-
pip3 install requests
30+
run: uv pip install --system requests
3431

3532
- name: Run Python unit tests
3633
env:

bindings/python/pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ authors = [
99
{ name="Elias Rohrer", email="dev@tnull.de" },
1010
]
1111
description = "A ready-to-go Lightning node library built using LDK and BDK."
12-
readme = "README.md"
12+
readme = "../../README.md"
1313
requires-python = ">=3.8"
1414
classifiers = [
1515
"Topic :: Software Development :: Libraries",
@@ -26,3 +26,5 @@ classifiers = [
2626

2727
[tool.hatch.build.targets.wheel]
2828
packages = ["src/ldk_node"]
29+
30+
[tool.hatch.build.hooks.custom]

0 commit comments

Comments
 (0)