Skip to content

ci: PyPy, free-threaded, 3.15, musl and Intel macOS wheels, plus an sdist - #3

Merged
SilentDemonSD merged 1 commit into
masterfrom
ci/pypy-freethreaded-wheels
Oct 3, 2026
Merged

SilentDemonSD merged 1 commit into
masterfrom
ci/pypy-freethreaded-wheels

Conversation

@SilentDemonSD

Copy link
Copy Markdown
Collaborator

Why

warpcrypto 2.0.7 on PyPI is CPython wheels only, with no sdist, so pip install warpcrypto (and therefore wzgram) fails on PyPy, free-threaded 3.14t and GraalPy. Linux wheels are also tagged manylinux_2_34 (glibc 2.34+), and macOS only gets arm64 because universal2 = true is not a maturin setting.

What

  • Release builds go through PyO3/maturin-action with --find-interpreter:
    • Linux: manylinux2014 and musllinux_1_2, on x86_64 and aarch64
    • macOS: arm64 and Intel
    • Windows: x64
    • Interpreters: CPython 3.9–3.15, 3.14t, PyPy 3.11
  • An sdist ships too, so GraalPy and any other runtime without a wheel can build from source.
  • github_release.yml merged into pypi_release.yml: build once, publish to PyPI, attach to the release.
  • The test matrix adds 3.14t, 3.15 and pypy3.11, plus a check that importing on 3.14t keeps the GIL off.
  • Classifiers add PyPy, Free Threading and 3.15.

Verified locally (Windows)

  • PyPy 3.11 and CPython 3.14t wheels build, and all 25 tests pass on each.
  • The sdist builds from source on PyPy, and all 25 tests pass.
  • sys._is_gil_enabled() is False after import warpcrypto on 3.14t.

The new release workflow has not run yet; it only runs on a published release.

Notes

  • No Rust change. Under free-threading, the ctr256_* IV/state bytearrays must not be shared between threads that use them at the same time. wzgram gives each connection its own, so this is fine.
  • Publishing the new wheels needs a version bump (2.0.7 is already on PyPI) and a release.

🤖 Generated with Claude Code

… an sdist

Every published wheel was a cpXY wheel built natively on the runner, with
no sdist, so pip on PyPy, 3.14t or GraalPy found nothing to install and
nothing to build. Building on ubuntu-latest outside a manylinux container
also tagged the Linux wheels manylinux_2_34, shutting out every distro
older than glibc 2.34. And `universal2 = true` is not a maturin setting:
macOS only ever got an arm64 wheel.

The release now builds through maturin-action with --find-interpreter:
manylinux2014 and musllinux_1_2 containers on Linux, native arm64 and
Intel runners on macOS, and an sdist for anything left over. The two
release workflows built the same wheels twice; they are one now.

No Rust change was needed. Verified locally on Windows: PyPy 3.11 and
CPython 3.14t wheels build and pass all 25 tests, the sdist builds from
source on PyPy and passes, and importing on 3.14t leaves the GIL off.
CI now checks that last one, since a module that does not declare
free-threading support silently re-enables the GIL at import.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@SilentDemonSD
SilentDemonSD merged commit 707087f into master Oct 3, 2026
72 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