Skip to content

Switch to uv python build system#858

Open
tnull wants to merge 3 commits intolightningdevkit:mainfrom
tnull:2026-03-switch-to-uv-python-build
Open

Switch to uv python build system#858
tnull wants to merge 3 commits intolightningdevkit:mainfrom
tnull:2026-03-switch-to-uv-python-build

Conversation

@tnull
Copy link
Copy Markdown
Collaborator

@tnull tnull commented Mar 30, 2026

We switch to uv, which looks a lot saner than previous python tooling, and might allow us to finally publish packages.

tnull added 2 commits March 30, 2026 16:52
Replace the split setuptools configuration (pyproject.toml + setup.cfg) with
a unified hatchling-based setup. This adds a [build-system] section pointing
to hatchling and a build hook (hatch_build.py) that marks wheels as
platform-specific since we bundle native shared libraries.

Hatchling includes all files in the package directory by default, which also
fixes the missing *.dll glob that setup.cfg had for Windows.

Bump requires-python from >=3.6 to >=3.8 as 3.6/3.7 are long EOL.

Co-Authored-By: HAL 9000
…ripts

Add `python_build_wheel.sh` which generates bindings and builds a
platform-specific wheel via `uv build`, and `python_publish_package.sh`
which publishes collected wheels via `uv publish`.

The intended workflow is to run the build script on each target platform
(Linux, macOS), collect the wheels, and then publish them in one go.

Co-Authored-By: HAL 9000
@ldk-reviews-bot
Copy link
Copy Markdown

ldk-reviews-bot commented Mar 30, 2026

I've assigned @valentinewallace as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

Replace `actions/setup-python` with `astral-sh/setup-uv` and use `uv
run` to run tests.

Co-Authored-By: HAL 9000
@tnull tnull force-pushed the 2026-03-switch-to-uv-python-build branch from f078c92 to 0a7ae2b Compare March 30, 2026 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants