Skip to content

fix(publish): remove --abi3/--interpreter flags; abi3 via Cargo.toml feature#45

Merged
hartsock merged 1 commit into
mainfrom
fix/publish-workflow
Jun 28, 2026
Merged

fix(publish): remove --abi3/--interpreter flags; abi3 via Cargo.toml feature#45
hartsock merged 1 commit into
mainfrom
fix/publish-workflow

Conversation

@hartsock

Copy link
Copy Markdown
Owner

Problem

The publish workflow failed with:

tip: to pass '--abi3' as a value, use '-- --abi3'

maturin-action v1 was being passed --interpreter python3.11 --abi3 in args:, which maturin doesn't accept — abi3 is activated by the pyo3/abi3-py39 crate feature in Cargo.toml, not a CLI flag.

Fix

Drop --interpreter and --abi3 from all three wheel jobs' args:. The abi3-py39 feature is already declared in Cargo.toml; maturin auto-detects it and stamps wheels cp39-abi3. Also scoped MATURIN_PYPI_TOKEN to just the upload step (not global env).

After merge

Re-push the v0.1.0 tag to re-trigger the publish run:

cd ~/workspaces/gitxtend
git push origin :v0.1.0 && git push origin v0.1.0

risk:low — workflow-only change, no Rust code modified

…feature

WHAT: maturin-action v1 does not accept `--abi3` as a standalone CLI flag
(maturin itself requires a value: `--abi3 <PY_VERSION>` is not a valid form
either — abi3 is activated by PyO3's `abi3-py39` CRATE FEATURE, not a CLI
flag). The original workflow passed `--interpreter python3.11 --abi3` which
maturin rejected with "tip: to pass '--abi3' as a value, use '-- --abi3'".

FIX: Drop `--interpreter` and `--abi3` from the `args:` lines entirely.
`abi3-py39` is already declared in `Cargo.toml`'s pyo3 features; maturin
detects it automatically and stamps the wheel `cp39-abi3`. Also move
`MATURIN_PYPI_TOKEN` into the upload step env (not a global env) — the token
is only needed by `maturin upload`, not the build steps.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018R92DDLCsWorb4fSJQrdvD
@hartsock
hartsock merged commit fe149d5 into main Jun 28, 2026
2 checks passed
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