Repository navigation
release: support running the native D2 CLI with uvx - #3061
Merged
Merged
Conversation
- sent from alixander's Codex
- sent from alixander's Codex
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Human
AI
Package the native D2 release executable for PyPI so
uvx d2lang input.d2 output.svgworks on macOS, Linux and Windows (x86-64 and ARM64). Runninguv tool install d2langalso installs thed2command.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
mastercan 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 --strictanduv publish --dry-run. On macOS ARM64, verified SVG output throughuvxand both installed commands throughuv tool install. The release guide includes the one-time PyPI publisher setup.