Skip to content

minify-html: add build-minify-html.yml for riscv64 wheels - #1106

Merged
luhenry merged 3 commits into
mainfrom
minify-html
Sep 6, 2026
Merged

minify-html: add build-minify-html.yml for riscv64 wheels#1106
luhenry merged 3 commits into
mainfrom
minify-html

Conversation

@luhenry

@luhenry luhenry commented Sep 6, 2026

Copy link
Copy Markdown
Member

Compiles the minify-html-python PyO3 extension (HTML/JS/CSS minifier). Upstream publishes no riscv64 wheel.

Mirrors upstream's python.yml build job.

Differs from upstream

  • Copies LICENSE next to minify-html-python/pyproject.toml - maturin only globs licence files beside pyproject.toml, so upstream's own wheels ship none at all.

Matrix: cp312/cp313/cp314, no cp314t - minify-html-python's Cargo.toml has no abi3 feature and upstream publishes no free-threaded wheel.

Testing

  • Real minification call plus a dist-info licence-file assertion (upstream's own release workflow runs no tests at all).

License: OK - MIT, no third-party sources vendored.

The folded >- scalar put python -c on its own line, leaving a leading
space before the first statement (IndentationError on cp3.9-3.13,
silently tolerated on cp3.14+). Also probe minify_html.minify_html
(the compiled submodule) instead of minify_html (maturin's pyi-stub
re-export shim), matching the real PyPI wheel's layout.
pyproject.toml carries no [project] table (metadata comes from Cargo.toml),
so maturin's directory-glob license auto-discovery never runs; the crate
needs an explicit [package] license-file key (gotcha 301).
@luhenry
luhenry merged commit 8693db4 into main Sep 6, 2026
8 checks passed
@luhenry
luhenry deleted the minify-html branch September 6, 2026 20:45
@luhenry luhenry linked an issue Sep 6, 2026 that may be closed by this pull request
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.

minify-html riscv64 support

1 participant