Skip to content

Publish: build only the sdist in the sdist job - #316

Merged
alxmrs merged 1 commit into
mainfrom
fix-sdist-wheel
Nov 16, 2026
Merged

alxmrs merged 1 commit into
mainfrom
fix-sdist-wheel

Conversation

@alxmrs

@alxmrs alxmrs commented Nov 16, 2026

Copy link
Copy Markdown
Member

The 0.7.0 upload to PyPI failed, and nothing was published:

400 Binary wheel 'xarray_sql-0.7.0-cp310-abi3-linux_x86_64.whl' has an unsupported platform tag 'linux_x86_64'.

Cause. The Source distribution job ran maturin build --release --sdist --out dist. That builds the sdist and also a wheel for the runner's own Linux. The job's check for stray wheels looked in target/wheels, but --out dist writes them to dist/, so the extra wheel was merged into the upload.

  • 0.6.0: maturin tagged that wheel manylinux_2_34_x86_64. PyPI accepted it, which is why 0.6.0 has two x86_64 Linux wheels.
  • 0.7.0: it was tagged plain linux_x86_64, which PyPI rejects.

Fix.

  • The job runs maturin sdist --out dist, which builds only the sdist. I checked locally that it writes only xarray_sql-0.7.0.tar.gz.
  • The check now fails if any .whl is in dist/ or target/wheels/.

The release's Linux x86_64 wheel still comes from the manylinux_2_28 job, as before.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NyN7idACeDMh94qrnFMu6h

maturin build --sdist also built a wheel for the host runner. For 0.6.0
it was tagged manylinux_2_34 and uploaded as a second x86_64 wheel; for
0.7.0 it was tagged linux_x86_64, and PyPI rejected the upload. The
check meant to catch this looked in target/wheels, but --out writes
to dist.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NyN7idACeDMh94qrnFMu6h
@coderabbitai

coderabbitai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@alxmrs
alxmrs merged commit b6f13b1 into main Nov 16, 2026
14 of 15 checks passed
@alxmrs
alxmrs deleted the fix-sdist-wheel branch November 16, 2026 03:34
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