Skip to content

release: support running the native D2 CLI with uvx - #3061

Merged
alixander merged 2 commits into
masterfrom
feat/uvx-d2lang
Nov 26, 2026
Merged

alixander merged 2 commits into
masterfrom
feat/uvx-d2lang

Conversation

@alixander

Copy link
Copy Markdown
Collaborator

Human


AI

Package the native D2 release executable for PyPI so uvx d2lang input.d2 output.svg works on macOS, Linux and Windows (x86-64 and ARM64). Running uv tool install d2lang also installs the d2 command.

The workflow builds six wheels from the archives of a published stable release, checks them against the promoted installer checksums, and tests each wheel on its native runner. Linux also runs on Alpine. The publish job uploads the tested wheels using PyPI trusted publishing. A manual dispatch from master can package an existing release.

Built all six wheels from v0.9.0 locally, verified their native binaries and notices against the archives, and passed twine check --strict and uv publish --dry-run. On macOS ARM64, verified SVG output through uvx and both installed commands through uv tool install. The release guide includes the one-time PyPI publisher setup.

  • sent from alixander's Codex

@alixander
alixander merged commit dfea994 into master Nov 26, 2026
26 checks passed
@alixander
alixander deleted the feat/uvx-d2lang branch November 26, 2026 15:29
alixander added a commit that referenced this pull request Nov 26, 2026
Master adds the CLI's MCP and LSP servers (#3058, #3059), uvx
distribution (#3061) and a setup-d2 doc (#3062), and makes native builds
embed the TTFs the way master's WebAssembly initializer did (9064887).

d2fonts_embed.go and d2fonts_woff.go are master's, limited to native
builds, so the native CLI's font bytes match master's exactly.
WebAssembly builds keep this branch's d2fonts_embed_wasm.go, which loads
the same TTFs from ttf_stream.br. go.sum is master's, tidied.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.

1 participant