Skip to content

Prepare Python wheel releases - #1041

Merged
tankyleo merged 4 commits into
lightningdevkit:mainfrom
tnull:2026-08-python-wheels
Aug 17, 2026
Merged

Prepare Python wheel releases#1041
tankyleo merged 4 commits into
lightningdevkit:mainfrom
tnull:2026-08-python-wheels

Conversation

@tnull

@tnull tnull commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

Build Python-ABI-independent wheels for supported Linux and macOS targets so users can install LDK Node directly from PyPI.

Keep build and publication available through local scripts. Require the complete artifact set on TestPyPI before production, and exercise the bindings on the oldest and newest supported CPython versions.

@tnull
tnull requested a review from valentinewallace August 11, 2026 14:25
@ldk-reviews-bot

ldk-reviews-bot commented Aug 11, 2026

Copy link
Copy Markdown

👋 Thanks for assigning @tankyleo 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.

@valentinewallace

Copy link
Copy Markdown
Contributor

This is pretty outside of my wheelhouse (ba dum tiss), and I was planning to sink a lot of my review bandwidth into https://git.rust-bitcoin.org/lightningdevkit/rust-lightning/pulls/4872 in the coming days, so FYI my first impression is that it may take me a little while to get to this and then take a while to get up to speed on it.

@tnull
tnull force-pushed the 2026-08-python-wheels branch from d2af3f8 to dbe8999 Compare August 13, 2026 07:12
@tnull
tnull requested review from tankyleo and removed request for valentinewallace August 13, 2026 07:12
@tnull tnull added this to the 0.8 milestone Aug 13, 2026
@tnull

tnull commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator Author

This is pretty outside of my wheelhouse (ba dum tiss), and I was planning to sink a lot of my review bandwidth into https://git.rust-bitcoin.org/lightningdevkit/rust-lightning/pulls/4872 in the coming days, so FYI my first impression is that it may take me a little while to get to this and then take a while to get up to speed on it.

Okay. Now reassigned @tankyleo as we'll need this for next week's release (worst case I just run the updated scripts locally without prior review).

Rebased after #1040 landed.

@tnull
tnull force-pushed the 2026-08-python-wheels branch from dbe8999 to 8fffe35 Compare August 13, 2026 07:21
tankyleo
tankyleo previously approved these changes Aug 14, 2026
Comment thread scripts/python_build_wheel.sh Outdated
Build Python-ABI-independent wheels for supported Linux and macOS
targets so users can install LDK Node directly from PyPI.

Keep build and publication available through local scripts. Require the
complete artifact set on TestPyPI before production, and exercise the
bindings on the oldest and newest supported CPython versions.

Co-Authored-By: HAL 9000
@tnull

tnull commented Aug 14, 2026

Copy link
Copy Markdown
Collaborator Author

Now also amended to allow building macOS x86_64 wheels on aarch64 macs.

@tnull
tnull requested a review from tankyleo August 14, 2026 09:02
Assisted-by: OpenAI Codex
cibuildwheel copies the repository into its Linux build container.
Ignored build outputs such as target/, virtual environments, and dist/
can make that context several gigabytes, slowing builds or exhausting
Docker storage.

Export tracked and non-ignored untracked files to a temporary source
directory before invoking cibuildwheel. This keeps ignored artifacts
out of the container context while preserving local changes for
--allow-dirty builds.

Assisted-by: OpenAI Codex

@tankyleo tankyleo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pushed a couple of commits on top of your branch that came up after a few rounds with codex, feel free to drop and amend as needed.

@tnull

tnull commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator Author

Pushed a couple of commits on top of your branch that came up after a few rounds with codex, feel free to drop and amend as needed.

Yeah, def. disagree with adding Cargo.lock in this PR, and we also shouldn't already bump the version number, that will done as part of the release process.

@tnull
tnull force-pushed the 2026-08-python-wheels branch from 913daec to c12e087 Compare August 17, 2026 08:01
@tnull
tnull requested a review from tankyleo August 17, 2026 08:02
Declare the dual-license expression and package both canonical license
texts. Remove deprecated license classifiers so the SPDX expression is
the authoritative declaration.

Co-Authored-By: HAL 9000
@tnull
tnull force-pushed the 2026-08-python-wheels branch 2 times, most recently from a426172 to 6c51028 Compare August 17, 2026 08:03
@Jolah1

Jolah1 commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

I successfully built and tested the Linux x86-64 wheel from this head across Python 3.10–3.14. The checksum and packaged license files look correct, and the publication validator rejects the incomplete artifact set as expected. The Linux ARM64 and two macOS wheels still need confirmation on their respective build hosts.

@tankyleo
tankyleo merged commit 93c06bc into lightningdevkit:main Aug 17, 2026
24 of 25 checks passed
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.

5 participants