Skip to content

ci(python): drop Python 3.10 and add Python 3.15 - #489

Open
TheGupta2012 wants to merge 4 commits into
mainfrom
ci/python-3.10-eol-3.15
Open

TheGupta2012 wants to merge 4 commits into
mainfrom
ci/python-3.10-eol-3.15

Conversation

@TheGupta2012

Copy link
Copy Markdown
Member

Why

Python 3.10 reached end of life in October 2026, and Python 3.15 is out. pyqasm still built and tested 3.10 and published no 3.15 wheels.

What changed

  • requires-python is now >=3.11. The classifiers list 3.11 to 3.15, and the README and docs say 3.11.
  • The CI, pre-release, test-release and release matrices drop each 3.10 entry and add 3.15 on the same platform: Linux x86_64, macOS x86_64 and arm64, and Windows x86_64.
  • The CI lock files in .github/requirements/ are recompiled for Python 3.11. This only drops tomli and typing-extensions, which were locked for 3.10 alone. No pinned version changes.

Scope

  • Packaging, CI and docs only. The tomli fallback in bin/write_version_file.py and the typing_extensions import in the CLI stay for a follow-up code change.
  • cibuildwheel stays at 4.3.4, which already lists cp315 build identifiers for all four platforms.

Blast Radius

Users on Python 3.10 stay on pyqasm 1.4.x, because pip skips releases whose requires-python excludes them. qbraid and qbraid-qir pin pyqasm with ranges, so their 3.10 users keep resolving 1.4.x.

Verification

  • On Python 3.15.2 (macOS arm64), a locally built cp315 wheel installed with the test,cli,pulse extras: 1218 passed, 3 skipped, 4 xfailed.
  • tox -e format-check passes, installed from the recompiled tox.txt.
  • This PR's CI builds and tests the 3.15 wheel on Linux.

Closes #488

TheGupta2012 and others added 4 commits November 19, 2026 12:16
Recompile the six lock files that targeted --python-version 3.10 with
--python-version 3.11, keeping every existing pin. The diff only removes
the entries that applied to Python 3.10 alone and simplifies their
markers; no package version used on 3.11+ changes and no hash is added.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replace the cp310 entries with cp315 in the CI wheel matrix and in the
release, pre-release and test-release matrices, on the same four
platforms. Each release matrix keeps 20 entries. The pinned
cibuildwheel 4.3.4 already lists cp315 for all four platform ids and
installs CPython 3.15.0, so it needs no bump.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Python 3.10 reached end of life in October 2026. Raise requires-python
to >=3.11, list the 3.11 to 3.15 classifiers, move black's
target-version to py311..py315, and update the install docs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@argus-eye

argus-eye Bot commented Nov 19, 2026

Copy link
Copy Markdown

Argus review

Auto-review is off for this repo. Tick the box below to run a review on this PR.

  • Trigger Argus review

Estimated cost

  • Files changed: 14
  • Diff lines (±): 412
  • Historical avg: ~337.1k tokens · ~$1.17 · across last 18 review(s)

Tip: you can also comment @argus-eye review at any time.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

This branch has not been deployed

No deployments
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.

[FEATURE] Drop Python 3.10 and add Python 3.15

2 participants