Skip to content

chore: build and test against CPython 3.15.2 and update dependencies - #181

Merged
PyYoshi merged 3 commits into
masterfrom
chore/python-3.15.2
Nov 13, 2026
Merged

PyYoshi merged 3 commits into
masterfrom
chore/python-3.15.2

Conversation

@PyYoshi

@PyYoshi PyYoshi commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Summary

CPython 3.15.2 was released on 2026-10-25. This PR builds and tests against it and updates dependencies. Several of the updates also remove trust in the compromised eMudhra/emSign CA roots.

  • pypa/cibuildwheel v4.3.1 → v4.3.5. This updates CPython 3.15 to 3.15.2 for the cp315 and cp315t wheels. v4.3.2–v4.3.4 also update certifi, pip, and the manylinux images in response to the eMudhra CA compromise.
  • astral-sh/setup-uv v10.3.0 → v10.3.3 (SHA-pinned). Its latest-known uv changes from 0.13.0 to 0.13.6, which brings these updates:
    • CPython 3.15.2 in the test matrix, along with 3.11.18, 3.12.16, 3.13.18, and 3.14.10.
    • The uv 0.13.4 fix for GHSA-hq85-5cpj-mr62.
    • setup-uv v10.3.3 also reads the version manifest from the Astral mirror.
  • pypa/gh-action-pypi-publish v1.14.2 → v1.14.3 (SHA-pinned) for GHSA-5xjx-3w67-w9x9. The publish job runs only on tags, so this PR does not exercise it.
  • uv lock --upgrade: ast-serialize 0.13.1, certifi 2026.10.23, chardet 7.7.0, Cython 3.3.1, importlib-metadata 10.2.0, markdown-it-py 4.3.0, more-itertools 11.2.1, mypy 2.4.1, mypy-extensions 1.2.0, pluggy 1.7.0, pycparser 3.12, pyperf 2.11.0, pytest 9.2.0, ruff 0.17.5, setuptools 84.2.1, zipp 4.1.2. The dev group lower bounds are raised to the locked versions.
  • importlib-metadata 10.2.0 now depends on lazy-importer 0.1.0, its PEP 810 lazy-import backport, on Python < 3.15 (Restore the deferred imports to module scope with PEP 810 lazy imports python/importlib_metadata#554). This project installs it only through twine → keyring on Python < 3.12. The package is published from pganssle/lazy_importer via PyPI Trusted Publishing, with provenance.
  • .gitignore now ignores .omc/ directories (local agent tooling state) at any depth.

CPython 3.15.2 is a bug-fix release with no C API or ABI change that affects the extension, so no source changes are needed. It also fixes a 3.15.0 regression in which threads that import package submodules for the first time could raise _DeadlockError or a spurious ImportError.

  • The build-system requirement Cython>=3.2.9,<3.4 is unchanged.
  • The uchardet submodule is already at the tip of PyYoshi/uchardet@cchardet.
  • Job names are unchanged, so the required status checks in the Protect master ruleset are unaffected.

Validation

  • Wheels: cibuildwheel 4.3.5 builds cp315-manylinux_x86_64 and cp315t-manylinux_x86_64 against Python 3.15.2 and the 3.15.2 free-threading build, with no compiler warnings. Both wheels are repaired and pass tools/wheel_smoke.py.
  • Test matrix: I ran the CI steps (uv sync --locked, then uv run pytest). All 29 tests pass on CPython 3.11, 3.12, 3.13, 3.14, 3.14t, 3.15.2, and free-threaded 3.15.2t. On 3.14t and 3.15.2t, sys._is_gil_enabled() stays false after cchardet is imported.
  • Lint and packaging: On 3.15.2, ruff check and ruff format --check pass with ruff 0.17.5, strict mypy passes with mypy 2.4.1, and uv build plus twine check pass.
  • lazy-importer: On Python 3.11, where it is installed, importlib_metadata 10.2.0 and twine import and run.
  • Lock file: The upgraded uv.lock passes uv lock --check with uv 0.9.26 (the required-version minimum), 0.13.6 (CI's latest-known), and 0.13.8.

References

- Update cibuildwheel to v4.3.5, which ships CPython 3.15.2, so cp315
  and cp315t wheels are built and smoke-tested against it. v4.3.2-v4.3.4
  also update certifi, pip, and the manylinux images in response to the
  eMudhra/emSign CA compromise
- Update setup-uv to v10.3.3. Its latest-known uv is now 0.13.6, which
  provides CPython 3.15.2 (and 3.11.18, 3.12.16, 3.13.18, 3.14.10) for
  the test matrix and includes the uv 0.13.4 CA fix
- Upgrade locked development dependencies to their latest releases,
  including Cython 3.3.1, mypy 2.4.1, pytest 9.2.0, and ruff 0.17.5,
  and raise the dev group lower bounds to match
- importlib-metadata 10.2.0 adds lazy-importer, its PEP 810 backport,
  on Python < 3.15; it is only installed through keyring on Python < 3.12
- Update pypa/gh-action-pypi-publish to v1.14.3 for GHSA-5xjx-3w67-w9x9
Keep local agent tooling state (oh-my-claudecode's .omc/) out of the
repository wherever it is created.
@PyYoshi
PyYoshi merged commit b745cc1 into master Nov 13, 2026
44 checks passed
@PyYoshi
PyYoshi deleted the chore/python-3.15.2 branch November 13, 2026 16:20
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