Skip to content

ci: use maturin sdist subcommand to avoid building a wheel#1759

Merged
andygrove merged 2 commits into
apache:mainfrom
andygrove:fix-sdist-no-wheel
May 24, 2026
Merged

ci: use maturin sdist subcommand to avoid building a wheel#1759
andygrove merged 2 commits into
apache:mainfrom
andygrove:fix-sdist-no-wheel

Conversation

@andygrove
Copy link
Copy Markdown
Member

Which issue does this PR close?

Closes #.

Rationale for this change

The Python Release Build's "Source distribution" job runs maturin build --release --sdist --out dist --strip. The maturin build subcommand produces a wheel even when --sdist is passed, so the job ends up emitting both a wheel and the sdist. This trips the "Assert sdist build does not generate wheels" step that was added in #1753, e.g. https://github.com/apache/datafusion-ballista/actions/runs/26345525629/job/77555535891:

Error: Sdist build generated wheels:
dist/ballista-52.0.0-cp310-abi3-manylinux_2_39_x86_64.whl

(The assertion previously looked in target/wheels rather than python/dist, so the same misbuild silently slipped through.)

What changes are included in this PR?

Switch the sdist job's build command to the dedicated maturin sdist --out dist subcommand, which only produces a .tar.gz. The --release and --strip flags only apply to wheel builds and are dropped.

Are there any user-facing changes?

No.

maturin build --sdist produces both a source distribution and a wheel,
which trips the assertion that the sdist job must not generate wheels.
Switch to the dedicated maturin sdist subcommand so only the .tar.gz
artifact is produced; the --release and --strip flags are wheel-only
and have no meaning for sdist.
@andygrove andygrove merged commit eee2103 into apache:main May 24, 2026
5 checks passed
@andygrove andygrove deleted the fix-sdist-no-wheel branch May 24, 2026 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant