Skip to content

Require CPython 3.11+ and add 3.15 to CI - #32

Merged
Alperen Cetin (hacetin) merged 2 commits into
mainfrom
alperen/cpython-sdk-support
Nov 30, 2026
Merged

Alperen Cetin (hacetin) merged 2 commits into
mainfrom
alperen/cpython-sdk-support

Conversation

@hacetin

@hacetin Alperen Cetin (hacetin) commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Raise the SDK’s minimum Python version from 3.9 to 3.11. Python 3.9 and 3.10 are no longer supported.

Switch PyO3 from abi3-py39 to abi3-py311 so the wheel tag matches the package’s declared minimum. Update CI to check for cp311-abi3 wheels and run smoke tests on standard CPython 3.11 through 3.15. Update the package classifiers and changelog to match.

Move Apple Silicon smoke tests from the unsupported macos-14 runner to macos-15. Intel x64 smoke tests continue to use macos-15-intel.

This change does not bump the package version. Full wheel builds and a CPython 3.15 import have not yet been verified.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: fc0bf86d-2617-4d52-a71f-9652c99c7a00
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: fc0bf86d-2617-4d52-a71f-9652c99c7a00

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Is this considered a breaking change (new python version required)?

@hacetin

Copy link
Copy Markdown
Contributor Author

Is this considered a breaking change (new python version required)

I would say so, we drop support for 3.9 and 3.10

@hacetin
Alperen Cetin (hacetin) merged commit 4b0dd60 into main Nov 30, 2026
33 checks passed
@ChrisKrawczyk

Copy link
Copy Markdown

Post-merge review notes: follow-ups before 0.4.0

The change is correct:

  • Cargo.toml, pyproject.toml and the CI wheel check all agree on 3.11.
  • All 25 smoke jobs passed. The 3.15 jobs ran 3.15.2, so the "3.15 import unverified" note in the description is out of date.
  • PyO3 0.23.5 with abi3-py311 builds from source on 3.14 and 3.15 hosts without PYO3_USE_ABI3_FORWARD_COMPATIBILITY, because the abi3 floor caps the version check. Only free-threaded builds can't, and that predates this PR.

Follow-ups:

  1. Name 0.4.0 in the changelog.
    • main is 0.3.0 with >=3.11, and the Unreleased entry names no version, so nothing stops a breaking 0.3.1.
    • Require Node.js 22+ for SDK 0.4.0 duroxide-node#33 says "The next minor release (0.4.0)… the requirement for 0.3.0 is unchanged". Mirror that wording.
    • Add the rule "a runtime-floor change needs at least a minor bump" to release preparation in both SDKs.
  2. State the minimum in the docs. After 0.4.0 ships, pip install -U duroxide on 3.9 or 3.10 will quietly stay on 0.3.0. The README, docs/user-guide.md and ci/smoke/README.md don't mention 3.11; the Node README states its minimum.
  3. Release validation: the internal release pipeline still expects cp39-abi3 wheels and smoke-tests 3.9/3.10. Its update is under review separately and needs to land before the next scheduled build.

Smaller items:

  • CI checks only wheel filenames. Consider:
    • if-no-files-found: error on uploads (Node already has it);
    • gating smoke on the sdist job;
    • asserting Requires-Python in the package metadata.
  • The full test suite runs only on 3.12. On 3.11 and 3.15, only a one-activity smoke test runs. Running pytest against the built wheel on 3.11 and 3.15 on Linux would cover both ends of the supported range. Node has the same gap.

Consumers that still need 3.9/3.10: none found.

  • No package depending on duroxide that we found requires Python <3.11.
  • PyPI shows 13 downloads on 3.9 and 38 on 3.10 over the 180 days to 2026-11-29, and none in the last 30 days.
  • Not covered: internal repositories and feeds.

Prepared with an AI-assisted multi-model review (GitHub Copilot CLI). Key claims were checked against the code and CI runs.

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.

3 participants