Skip to content

Drop Python 3.11 and add Python 3.15 support - #3500

Merged
jeromekelleher merged 2 commits into
tskit-dev:mainfrom
jeromekelleher:pyversion-bump
Oct 30, 2026
Merged

jeromekelleher merged 2 commits into
tskit-dev:mainfrom
jeromekelleher:pyversion-bump

Conversation

@jeromekelleher

Copy link
Copy Markdown
Member

Require Python >= 3.12, add the 3.15 classifier and cibuildwheel target, and test on 3.12 and 3.15 in CI. Re-lock dependencies for the new range.

Replace distutils.StrictVersion in the release benchmark script with packaging.version.Version, since distutils was removed in Python 3.12.

Closes #3483

@codecov

codecov Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.71%. Comparing base (826c2b7) to head (17bf97a).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3500   +/-   ##
=======================================
  Coverage   91.71%   91.71%           
=======================================
  Files          37       37           
  Lines       30831    30831           
  Branches     4919     4919           
=======================================
  Hits        28278    28278           
  Misses       2223     2223           
  Partials      330      330           
Flag Coverage Δ
C 82.32% <ø> (ø)
c-python 77.05% <ø> (ø)
python-tests 96.44% <ø> (ø)
python-tests-no-jit 33.29% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Python API 98.73% <ø> (ø)
Python C interface 91.21% <ø> (ø)
C library 91.27% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jeromekelleher

Copy link
Copy Markdown
Member Author

Needs msprime 3.15 wheels first

Require Python >= 3.12, add the 3.15 classifier and cibuildwheel target,
and test on 3.12 and 3.15 in CI. Re-lock dependencies for the new range.

Replace distutils.StrictVersion in the release benchmark script with
packaging.version.Version, since distutils was removed in Python 3.12.
@jeromekelleher
jeromekelleher merged commit be966b4 into tskit-dev:main Oct 30, 2026
17 checks passed
@jeromekelleher
jeromekelleher deleted the pyversion-bump branch October 30, 2026 16:10
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.

Python 3.15 support

1 participant