Skip to content

Support PyPy 3.12: wheels, weekly CI and the compatibility page #889

Backlog

Description

@JuroOravec

(Opus 5.5)

PyPy's next release, 8.1.0, ships Python 2.7 and 3.12 only. Its draft release notes (release-v8.1.0.rst, no date yet) say "We have dropped 3.11", and the 8.0.1 notes say that, barring security issues, 8.0.1 is the last release to support 3.11. Citry supports and tests only PyPy 3.11, so once 8.1.0 is out, someone installing the current PyPy gets no citry-core wheel and a Citry nobody has tested on it.

PyPy 8.1.0 will also carry the fix for pypy/pypy#5810, merged in pypy/pypy#5811 on the 3.12 branch only. With it, deep recursion through a C extension raises RecursionError instead of ending the process. That crash is behind some of Citry's PyPy limits and skipped tests.

There is nothing to do until 8.1.0 is released. Then:

  1. Wheels. py--citry-core--publish.yml builds the PyPy wheel with --interpreter pypy3.11 and smoke-tests it on pypy3.11-v7.x. Add a PyPy 3.12 wheel and smoke-test it on the released 8.1.0. PyO3 0.30.1, the version Citry pins, supports PyPy 3.12. The wheel tag question is already open in citry-core has no wheels for PyPy 8.0 #853: PyPy 8.0 reports pp80, while maturin builds pp73. PyPy 8.1.0 changes some C structs again, so check which tag it reports. PyPy's notes also say it will soon accept cp312-abi3 wheels; once it does, a stable-ABI wheel built for 3.12 could cover PyPy without a build of its own.

  2. Weekly CI. py--alt-interpreters.yml runs pypy3.11. Add pypy3.12, and decide whether to keep pypy3.11 while PyPy 8.0.x is still in use.

  3. Skipped tests. On PyPy 8.1.0, run the two tests that test: skip or fix the five tests that fail on PyPy #851 skips with "PyPy's C-API layer crashes in this subprocess; see PyPy and free-threaded test failures left after #585 #708", both in packages/py/citry/tests/test_events_pydantic_bounded.py:

    • test_the_copy_of_a_chain_of_nested_models_is_built_on_a_thread_with_a_small_stack
    • test_deep_data_checked_from_a_thread_with_a_small_stack_is_refused

    Nobody has shown yet that these crashes are the same bug as pypy#5810. If the tests pass on 8.1.0, skip them only on PyPy versions without the fix. Check PyPy: a long chain of nested model classes ends the process when Citry builds its validator copy #854 on 8.1.0 too.

  4. Docs. docs_site/content/about/compatibility.md names only PyPy 3.11, in "PyPy and free-threaded", in the line about which interpreters have wheels, and in "Differences on PyPy". Add 3.12. If the crash is gone on 8.1.0, say in "Differences on PyPy" and in the security page's "Event data on PyPy" section which PyPy version raises RecursionError instead of ending the process. The nesting limits stay for PyPy versions without the fix.

Related: #853 (wheel tags for PyPy 8.0), #854 and #708 (other PyPy failures), #851 (the skips).

Activity

  1. added
    enhancement
    python
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementpython

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions